< prev index next >
src/java.desktop/share/classes/java/awt/image/ReplicateScaleFilter.java
Print this page
*** 69,103 ****
* The target height to scale the image.
*/
protected int destHeight;
/**
! * An <code>int</code> array containing information about a
* row of pixels.
*/
protected int srcrows[];
/**
! * An <code>int</code> array containing information about a
* column of pixels.
*/
protected int srccols[];
/**
! * A <code>byte</code> array initialized with a size of
* {@link #destWidth} and used to deliver a row of pixel
* data to the {@link ImageConsumer}.
*/
protected Object outpixbuf;
/**
* Constructs a ReplicateScaleFilter that scales the pixels from
* its source Image as specified by the width and height parameters.
* @param width the target width to scale the image
* @param height the target height to scale the image
! * @throws IllegalArgumentException if <code>width</code> equals
! * zero or <code>height</code> equals zero
*/
public ReplicateScaleFilter(int width, int height) {
if (width == 0 || height == 0) {
throw new IllegalArgumentException("Width ("+width+
") and height ("+height+
--- 69,103 ----
* The target height to scale the image.
*/
protected int destHeight;
/**
! * An {@code int} array containing information about a
* row of pixels.
*/
protected int srcrows[];
/**
! * An {@code int} array containing information about a
* column of pixels.
*/
protected int srccols[];
/**
! * A {@code byte} array initialized with a size of
* {@link #destWidth} and used to deliver a row of pixel
* data to the {@link ImageConsumer}.
*/
protected Object outpixbuf;
/**
* Constructs a ReplicateScaleFilter that scales the pixels from
* its source Image as specified by the width and height parameters.
* @param width the target width to scale the image
* @param height the target height to scale the image
! * @throws IllegalArgumentException if {@code width} equals
! * zero or {@code height} equals zero
*/
public ReplicateScaleFilter(int width, int height) {
if (width == 0 || height == 0) {
throw new IllegalArgumentException("Width ("+width+
") and height ("+height+
*** 108,122 ****
}
/**
* Passes along the properties from the source object after adding a
* property indicating the scale applied.
! * This method invokes <code>super.setProperties</code>,
* which might result in additional properties being added.
* <p>
* Note: This method is intended to be called by the
! * <code>ImageProducer</code> of the <code>Image</code> whose pixels
* are being filtered. Developers using
* this class to filter pixels from an image should avoid calling
* this method directly since that operation could interfere
* with the filtering operation.
*/
--- 108,122 ----
}
/**
* Passes along the properties from the source object after adding a
* property indicating the scale applied.
! * This method invokes {@code super.setProperties},
* which might result in additional properties being added.
* <p>
* Note: This method is intended to be called by the
! * {@code ImageProducer} of the {@code Image} whose pixels
* are being filtered. Developers using
* this class to filter pixels from an image should avoid calling
* this method directly since that operation could interfere
* with the filtering operation.
*/
*** 136,146 ****
/**
* Override the dimensions of the source image and pass the dimensions
* of the new scaled size to the ImageConsumer.
* <p>
* Note: This method is intended to be called by the
! * <code>ImageProducer</code> of the <code>Image</code> whose pixels
* are being filtered. Developers using
* this class to filter pixels from an image should avoid calling
* this method directly since that operation could interfere
* with the filtering operation.
* @see ImageConsumer
--- 136,146 ----
/**
* Override the dimensions of the source image and pass the dimensions
* of the new scaled size to the ImageConsumer.
* <p>
* Note: This method is intended to be called by the
! * {@code ImageProducer} of the {@code Image} whose pixels
* are being filtered. Developers using
* this class to filter pixels from an image should avoid calling
* this method directly since that operation could interfere
* with the filtering operation.
* @see ImageConsumer
*** 176,186 ****
* Choose which rows and columns of the delivered byte pixels are
* needed for the destination scaled image and pass through just
* those rows and columns that are needed, replicated as necessary.
* <p>
* Note: This method is intended to be called by the
! * <code>ImageProducer</code> of the <code>Image</code> whose pixels
* are being filtered. Developers using
* this class to filter pixels from an image should avoid calling
* this method directly since that operation could interfere
* with the filtering operation.
*/
--- 176,186 ----
* Choose which rows and columns of the delivered byte pixels are
* needed for the destination scaled image and pass through just
* those rows and columns that are needed, replicated as necessary.
* <p>
* Note: This method is intended to be called by the
! * {@code ImageProducer} of the {@code Image} whose pixels
* are being filtered. Developers using
* this class to filter pixels from an image should avoid calling
* this method directly since that operation could interfere
* with the filtering operation.
*/
*** 217,227 ****
* Choose which rows and columns of the delivered int pixels are
* needed for the destination scaled image and pass through just
* those rows and columns that are needed, replicated as necessary.
* <p>
* Note: This method is intended to be called by the
! * <code>ImageProducer</code> of the <code>Image</code> whose pixels
* are being filtered. Developers using
* this class to filter pixels from an image should avoid calling
* this method directly since that operation could interfere
* with the filtering operation.
*/
--- 217,227 ----
* Choose which rows and columns of the delivered int pixels are
* needed for the destination scaled image and pass through just
* those rows and columns that are needed, replicated as necessary.
* <p>
* Note: This method is intended to be called by the
! * {@code ImageProducer} of the {@code Image} whose pixels
* are being filtered. Developers using
* this class to filter pixels from an image should avoid calling
* this method directly since that operation could interfere
* with the filtering operation.
*/
< prev index next >