affinetransformop.html
来自「API資料大全」· HTML 代码 · 共 608 行 · 第 1/3 页
HTML
608 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:33:57 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class AffineTransformOp</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AffineTransformOp.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../java/awt/image/AreaAveragingScaleFilter.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AffineTransformOp.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">java.awt.image</FONT><BR>Class AffineTransformOp</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A> | +--<B>java.awt.image.AffineTransformOp</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A>, <A HREF="../../../java/awt/image/RasterOp.html">RasterOp</A></DD></DL><HR><DL><DT>public class <B>AffineTransformOp</B><DT>extends <A HREF="../../../java/lang/Object.html">Object</A><DT>implements <A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A>, <A HREF="../../../java/awt/image/RasterOp.html">RasterOp</A></DL><P>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 in the destination image or <CODE>Raster</CODE>. The type of interpolation that is used is specified through a constructor, either by a <CODE>RenderingHints</CODE> object or by one of the integer interpolation types defined in this class. <p> If a <CODE>RenderingHints</CODE> object is specified in the constructor, the interpolation hint and the rendering quality hint are used to set the interpolation type for this operation. The color rendering hint and the dithering hint can be used when color conversion is required. <p> Note that the following constraints have to be met: <ul> <li>The source and destination must be different. <li>For <CODE>Raster</CODE> objects, the number of bands in the source must be equal to the number of bands in the destination. </ul><P><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/AffineTransform.html"><CODE>AffineTransform</CODE></A>, <A HREF="../../../java/awt/image/BufferedImageFilter.html"><CODE>BufferedImageFilter</CODE></A>, <A HREF="../../../java/awt/RenderingHints.html#KEY_INTERPOLATION"><CODE>RenderingHints.KEY_INTERPOLATION</CODE></A>, <A HREF="../../../java/awt/RenderingHints.html#KEY_RENDERING"><CODE>RenderingHints.KEY_RENDERING</CODE></A>, <A HREF="../../../java/awt/RenderingHints.html#KEY_COLOR_RENDERING"><CODE>RenderingHints.KEY_COLOR_RENDERING</CODE></A>, <A HREF="../../../java/awt/RenderingHints.html#KEY_DITHERING"><CODE>RenderingHints.KEY_DITHERING</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#TYPE_BILINEAR">TYPE_BILINEAR</A></B></CODE><BR> Bilinear interpolation type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#TYPE_NEAREST_NEIGHBOR">TYPE_NEAREST_NEIGHBOR</A></B></CODE><BR> Nearest-neighbor interpolation type.</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#AffineTransformOp(java.awt.geom.AffineTransform, int)">AffineTransformOp</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> xform, int interpolationType)</CODE><BR> Constructs an <CODE>AffineTransformOp</CODE> given an affine transform and the interpolation type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#AffineTransformOp(java.awt.geom.AffineTransform, java.awt.RenderingHints)">AffineTransformOp</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> xform, <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Constructs an <CODE>AffineTransformOp</CODE> given an affine transform.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#createCompatibleDestImage(java.awt.image.BufferedImage, java.awt.image.ColorModel)">createCompatibleDestImage</A></B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A> src, <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> destCM)</CODE><BR> Creates a zeroed destination image with the correct size and number of bands.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#createCompatibleDestRaster(java.awt.image.Raster)">createCompatibleDestRaster</A></B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Creates a zeroed destination <CODE>Raster</CODE> with the correct size and number of bands.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#filter(java.awt.image.BufferedImage, java.awt.image.BufferedImage)">filter</A></B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A> src, <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A> dst)</CODE><BR> Transforms the source <CODE>BufferedImage</CODE> and stores the results in the destination <CODE>BufferedImage</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#filter(java.awt.image.Raster, java.awt.image.WritableRaster)">filter</A></B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A> src, <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> dst)</CODE><BR> Transforms the source <CODE>Raster</CODE> and stores the results in the destination <CODE>Raster</CODE>.</TD></TR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?