< prev index next >

src/java.desktop/share/classes/java/awt/image/ImageFilter.java

Print this page

        

*** 74,83 **** --- 74,98 ---- instance.consumer = ic; return instance; } /** + * Returns a unique instance of an ImageFilter object used to perform + * the filtering for an image which size is scaled (relative to + * the original image size). + * The default implementation just clones this object. + * <p> + * @param scaleX the specified scale factor fox x-axis + * @param scaleY the specified scale factor fox y-axis + * @return an {@code ImageFilter} used to perform the + * filtering for scaled images. + */ + public ImageFilter getScaledFilterInstance(double scaleX, double scaleY) { + return (ImageFilter) clone(); + } + + /** * Filters the information provided in the setDimensions method * of the ImageConsumer interface. * <p> * Note: This method is intended to be called by the ImageProducer * of the Image whose pixels are being filtered. Developers using
< prev index next >