src/share/classes/java/awt/image/RescaleOp.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 142,152 **** * this <code>RescaleOp</code> * @return the scale factors of this <code>RescaleOp</code>. */ final public float[] getScaleFactors (float scaleFactors[]) { if (scaleFactors == null) { ! return (float[]) this.scaleFactors.clone(); } System.arraycopy (this.scaleFactors, 0, scaleFactors, 0, Math.min(this.scaleFactors.length, scaleFactors.length)); return scaleFactors; --- 142,152 ---- * this <code>RescaleOp</code> * @return the scale factors of this <code>RescaleOp</code>. */ final public float[] getScaleFactors (float scaleFactors[]) { if (scaleFactors == null) { ! return this.scaleFactors.clone(); } System.arraycopy (this.scaleFactors, 0, scaleFactors, 0, Math.min(this.scaleFactors.length, scaleFactors.length)); return scaleFactors;
*** 160,170 **** * this <code>RescaleOp</code> * @return the offsets of this <code>RescaleOp</code>. */ final public float[] getOffsets(float offsets[]) { if (offsets == null) { ! return (float[]) this.offsets.clone(); } System.arraycopy (this.offsets, 0, offsets, 0, Math.min(this.offsets.length, offsets.length)); return offsets; --- 160,170 ---- * this <code>RescaleOp</code> * @return the offsets of this <code>RescaleOp</code>. */ final public float[] getOffsets(float offsets[]) { if (offsets == null) { ! return this.offsets.clone(); } System.arraycopy (this.offsets, 0, offsets, 0, Math.min(this.offsets.length, offsets.length)); return offsets;