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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2005, 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, 2013, 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
*** 32,42 **** import java.awt.AlphaComposite; import java.awt.GraphicsEnvironment; import java.awt.Rectangle; import java.awt.RenderingHints; import java.awt.Transparency; ! import javax.tools.annotation.GenerateNativeHeader; import sun.awt.image.ImagingLib; /** * This class uses an affine transform to perform a linear mapping from * 2D coordinates in the source image or <CODE>Raster</CODE> to 2D coordinates --- 32,42 ---- import java.awt.AlphaComposite; import java.awt.GraphicsEnvironment; import java.awt.Rectangle; import java.awt.RenderingHints; import java.awt.Transparency; ! import java.lang.annotation.Native; import sun.awt.image.ImagingLib; /** * This class uses an affine transform to perform a linear mapping from * 2D coordinates in the source image or <CODE>Raster</CODE> to 2D coordinates
*** 61,90 **** * @see java.awt.RenderingHints#KEY_INTERPOLATION * @see java.awt.RenderingHints#KEY_RENDERING * @see java.awt.RenderingHints#KEY_COLOR_RENDERING * @see java.awt.RenderingHints#KEY_DITHERING */ - /* No native methods here, but the constants are needed in the supporting JNI code */ - @GenerateNativeHeader public class AffineTransformOp implements BufferedImageOp, RasterOp { private AffineTransform xform; RenderingHints hints; /** * Nearest-neighbor interpolation type. */ ! public static final int TYPE_NEAREST_NEIGHBOR = 1; /** * Bilinear interpolation type. */ ! public static final int TYPE_BILINEAR = 2; /** * Bicubic interpolation type. */ ! public static final int TYPE_BICUBIC = 3; int interpolationType = TYPE_NEAREST_NEIGHBOR; /** * Constructs an <CODE>AffineTransformOp</CODE> given an affine transform. --- 61,88 ---- * @see java.awt.RenderingHints#KEY_INTERPOLATION * @see java.awt.RenderingHints#KEY_RENDERING * @see java.awt.RenderingHints#KEY_COLOR_RENDERING * @see java.awt.RenderingHints#KEY_DITHERING */ public class AffineTransformOp implements BufferedImageOp, RasterOp { private AffineTransform xform; RenderingHints hints; /** * Nearest-neighbor interpolation type. */ ! @Native public static final int TYPE_NEAREST_NEIGHBOR = 1; /** * Bilinear interpolation type. */ ! @Native public static final int TYPE_BILINEAR = 2; /** * Bicubic interpolation type. */ ! @Native public static final int TYPE_BICUBIC = 3; int interpolationType = TYPE_NEAREST_NEIGHBOR; /** * Constructs an <CODE>AffineTransformOp</CODE> given an affine transform.