0N/A/*
2362N/A * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.java2d.pipe;
0N/A
0N/Aimport java.awt.Color;
0N/Aimport java.awt.Image;
0N/Aimport java.awt.image.BufferedImage;
0N/Aimport java.awt.image.BufferedImageOp;
0N/Aimport java.awt.image.ImageObserver;
0N/Aimport java.awt.geom.AffineTransform;
0N/Aimport sun.java2d.SunGraphics2D;
0N/A
0N/A/**
0N/A * This interface defines the set of calls that pipeline objects
0N/A * can use to pass on responsibility for performing various
0N/A * image copy commands.
0N/A * There are 3 types of image copies handled by this class:
0N/A * - copyImage: These methods simply copy the pixels
0N/A * from the src to dest, either from (0, 0) (implicit)
0N/A * or from a given (sx, sy) location.
0N/A * - scaleImage: These methods copy from src to dest while
0N/A * scaling the source image. The src and dest rectangles
0N/A * are used to specify the scale.
0N/A * - copyImageBg: These methods behave the same as the
0N/A * copyImage methods except they substitute the given
0N/A * background color for any transparent pixels.
0N/A * - scaleImageBg: These methods behave the same as the
0N/A * scaleImage methods except they substitute the given
0N/A * background color for any transparent pixels.
0N/A * - transformImage....
0N/A */
0N/Apublic interface DrawImagePipe {
0N/A
0N/A public boolean copyImage(SunGraphics2D sg, Image img,
0N/A int x, int y,
0N/A Color bgColor,
0N/A ImageObserver observer);
0N/A
0N/A public boolean copyImage(SunGraphics2D sg, Image img,
0N/A int dx, int dy, int sx, int sy, int w, int h,
0N/A Color bgColor,
0N/A ImageObserver observer);
0N/A
0N/A public boolean scaleImage(SunGraphics2D sg, Image img, int x, int y,
0N/A int width, int height,
0N/A Color bgColor,
0N/A ImageObserver observer);
0N/A
0N/A public boolean scaleImage(SunGraphics2D sg, Image img,
0N/A int dx1, int dy1, int dx2, int dy2,
0N/A int sx1, int sy1, int sx2, int sy2,
0N/A Color bgColor,
0N/A ImageObserver observer);
0N/A
0N/A public boolean transformImage(SunGraphics2D sg, Image img,
0N/A AffineTransform atfm,
0N/A ImageObserver observer);
0N/A
0N/A public void transformImage(SunGraphics2D sg, BufferedImage img,
0N/A BufferedImageOp op, int x, int y);
0N/A
0N/A
0N/A}