Package java.awt.image

Examples of java.awt.image.AreaAveragingScaleFilter


        if (img.getWidth(observer) == width && img.getHeight(observer) == height)
            return drawImage(img, x, y, bgcolor, observer);

        return drawImage(new ToolkitImage(new FilteredImageSource(img.getSource(),
            new AreaAveragingScaleFilter(width, height))), x, y, bgcolor, observer);
    }
View Full Code Here


        if (img.getWidth(observer) == width && img.getHeight(observer) == height)
            return drawImage(img, x, y, observer);

        return drawImage(new ToolkitImage(new FilteredImageSource(img.getSource(),
            new AreaAveragingScaleFilter(width, height))), x, y, observer);
    }
View Full Code Here

     *      java.awt.Color, java.awt.image.ImageObserver)
     */
    public final boolean drawImage(Image image, int x, int y, int width, int height, Color bgcolor,
                                   ImageObserver observer) {
        return drawImage(
            new ToolkitImage(new FilteredImageSource(image.getSource(), new AreaAveragingScaleFilter(width, height))),
            x,
            y, bgcolor, observer);
    }
View Full Code Here

     * @return boolean
     * @see java.awt.Graphics#drawImage(java.awt.Image, int, int, int, int, java.awt.image.ImageObserver)
     */
    public final boolean drawImage(Image image, int x, int y, int width, int height, ImageObserver observer) {
        return drawImage(
            new ToolkitImage(new FilteredImageSource(image.getSource(), new AreaAveragingScaleFilter(width, height))),
            x,
            y, observer);
    }
View Full Code Here

    public abstract int getHeight(ImageObserver observer);

    public Image getScaledInstance(int width, int height, int hints) {
        ImageFilter filter;
        if ((hints & (SCALE_SMOOTH | SCALE_AREA_AVERAGING)) != 0) {
            filter = new AreaAveragingScaleFilter(width, height);
        } else {
            filter = new ReplicateScaleFilter(width, height);
        }
        ImageProducer producer = new FilteredImageSource(getSource(), filter);
        return Toolkit.getDefaultToolkit().createImage(producer);
View Full Code Here

     * @since      JDK1.1
     */
    public Image getScaledInstance(int width, int height, int hints) {
  ImageFilter filter;
  if ((hints & (SCALE_SMOOTH | SCALE_AREA_AVERAGING)) != 0) {
      filter = new AreaAveragingScaleFilter(width, height);
  } else {
      filter = new ReplicateScaleFilter(width, height);
  }
  ImageProducer prod;
  prod = new FilteredImageSource(getSource(), filter);
View Full Code Here

     * @since      JDK1.1
     */
    public Image getScaledInstance(int width, int height, int hints) {
        ImageFilter filter;
        if ((hints & (SCALE_SMOOTH | SCALE_AREA_AVERAGING)) != 0) {
            filter = new AreaAveragingScaleFilter(width, height);
        } else {
            filter = new ReplicateScaleFilter(width, height);
        }
        ImageProducer prod;
        prod = new FilteredImageSource(getSource(), filter);
View Full Code Here

    public abstract int getHeight(ImageObserver observer);

    public Image getScaledInstance(int width, int height, int hints) {
        ImageFilter filter;
        if ((hints & (SCALE_SMOOTH | SCALE_AREA_AVERAGING)) != 0) {
            filter = new AreaAveragingScaleFilter(width, height);
        } else {
            filter = new ReplicateScaleFilter(width, height);
        }
        ImageProducer producer = new FilteredImageSource(getSource(), filter);
        return Toolkit.getDefaultToolkit().createImage(producer);
View Full Code Here

    public abstract int getHeight(ImageObserver observer);

    public Image getScaledInstance(int width, int height, int hints) {
        ImageFilter filter;
        if ((hints & (SCALE_SMOOTH | SCALE_AREA_AVERAGING)) != 0) {
            filter = new AreaAveragingScaleFilter(width, height);
        } else {
            filter = new ReplicateScaleFilter(width, height);
        }
        ImageProducer producer = new FilteredImageSource(getSource(), filter);
        return Toolkit.getDefaultToolkit().createImage(producer);
View Full Code Here

     * @since      JDK1.1
     */
    public Image getScaledInstance(int width, int height, int hints) {
        ImageFilter filter;
        if ((hints & (SCALE_SMOOTH | SCALE_AREA_AVERAGING)) != 0) {
            filter = new AreaAveragingScaleFilter(width, height);
        } else {
            filter = new ReplicateScaleFilter(width, height);
        }
        ImageProducer prod;
        prod = new FilteredImageSource(getSource(), filter);
View Full Code Here

TOP

Related Classes of java.awt.image.AreaAveragingScaleFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.