affinetransformop.html

来自「API資料大全」· HTML 代码 · 共 608 行 · 第 1/3 页

HTML
608
字号
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#getBounds2D(java.awt.image.BufferedImage)">getBounds2D</A></B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;src)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounding box of the transformed destination.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#getBounds2D(java.awt.image.Raster)">getBounds2D</A></B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A>&nbsp;src)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounding box of the transformed destination.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#getInterpolationType()">getInterpolationType</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the interpolation type used by this op.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#getPoint2D(java.awt.geom.Point2D, java.awt.geom.Point2D)">getPoint2D</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;srcPt,           <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;dstPt)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the location of the corresponding destination point given a point in the source.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#getRenderingHints()">getRenderingHints</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the rendering hints used by this transform operation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/AffineTransformOp.html#getTransform()">getTransform</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the affine transform used by this transform operation.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="TYPE_NEAREST_NEIGHBOR"><!-- --></A><H3>TYPE_NEAREST_NEIGHBOR</H3><PRE>public static final int <B>TYPE_NEAREST_NEIGHBOR</B></PRE><DL><DD>Nearest-neighbor interpolation type.</DL><HR><A NAME="TYPE_BILINEAR"><!-- --></A><H3>TYPE_BILINEAR</H3><PRE>public static final int <B>TYPE_BILINEAR</B></PRE><DL><DD>Bilinear interpolation type.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="AffineTransformOp(java.awt.geom.AffineTransform, java.awt.RenderingHints)"><!-- --></A><H3>AffineTransformOp</H3><PRE>public <B>AffineTransformOp</B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A>&nbsp;xform,                         <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A>&nbsp;hints)</PRE><DL><DD>Constructs an <CODE>AffineTransformOp</CODE> given an affine transform. The interpolation type is determined from the  <CODE>RenderingHints</CODE> object.  If the interpolation hint is  defined, it will be used. Otherwise, if the rendering quality hint is         defined, the interpolation type is determined from its value.  If no  hints are specified (<CODE>hints</CODE> is null), the interpolation type is <A HREF="../../../java/awt/image/AffineTransformOp.html#TYPE_NEAREST_NEIGHBOR"><CODE>TYPE_NEAREST_NEIGHBOR</CODE></A>.<DD><DL><DT><B>Parameters:</B><DD><CODE>xform</CODE> - The <CODE>AffineTransform</CODE> to use for the operation.<DD><CODE>hints</CODE> - The <CODE>RenderingHints</CODE> object used to specify the interpolation type for the operation.<DT><B>See Also: </B><DD><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></DL></DD></DL><HR><A NAME="AffineTransformOp(java.awt.geom.AffineTransform, int)"><!-- --></A><H3>AffineTransformOp</H3><PRE>public <B>AffineTransformOp</B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A>&nbsp;xform,                         int&nbsp;interpolationType)</PRE><DL><DD>Constructs an <CODE>AffineTransformOp</CODE> given an affine transform  and the interpolation type.<DD><DL><DT><B>Parameters:</B><DD><CODE>xform</CODE> - The <CODE>AffineTransform</CODE> to use for the operation.<DD><CODE>interpolationType</CODE> - One of the integer interpolation type constants defined by this class:  <A HREF="../../../java/awt/image/AffineTransformOp.html#TYPE_NEAREST_NEIGHBOR"><CODE>TYPE_NEAREST_NEIGHBOR</CODE></A>,  <A HREF="../../../java/awt/image/AffineTransformOp.html#TYPE_BILINEAR"><CODE>TYPE_BILINEAR</CODE></A>.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getInterpolationType()"><!-- --></A><H3>getInterpolationType</H3><PRE>public final int <B>getInterpolationType</B>()</PRE><DL><DD>Returns the interpolation type used by this op.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/AffineTransformOp.html#TYPE_NEAREST_NEIGHBOR"><CODE>TYPE_NEAREST_NEIGHBOR</CODE></A>, <A HREF="../../../java/awt/image/AffineTransformOp.html#TYPE_BILINEAR"><CODE>TYPE_BILINEAR</CODE></A></DL></DD></DL><HR><A NAME="filter(java.awt.image.BufferedImage, java.awt.image.BufferedImage)"><!-- --></A><H3>filter</H3><PRE>public final <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A> <B>filter</B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;src,                                  <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;dst)</PRE><DL><DD>Transforms the source <CODE>BufferedImage</CODE> and stores the results  in the destination <CODE>BufferedImage</CODE>.   If the color models for the two images do not match, a color conversion into the destination color model is performed. If the destination image is null, a <CODE>BufferedImage</CODE> is created with the source  <CODE>ColorModel</CODE>. <p> The coordinates of the rectangle returned by  <code>getBounds2D(BufferedImage)</code> are not necessarily the same as the coordinates of the  <code>BufferedImage</code> returned by this method.  If the upper-left corner coordinates of the rectangle are  negative then this part of the rectangle is not drawn.  If the upper-left corner coordinates of the  rectangle are positive  then the filtered image is drawn at that position in the destination <code>BufferedImage</code>. <p>  An <CODE>IllegalArgumentException</CODE> is thrown if the source is the same as the destination.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#filter(java.awt.image.BufferedImage, java.awt.image.BufferedImage)">filter</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - The <CODE>BufferedImage</CODE> to transform.<DD><CODE>dst</CODE> - The <CODE>BufferedImage</CODE> in which to store the results  of the transformation.<DT><B>Returns:</B><DD>The filtered <CODE>BufferedImage</CODE>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>src</code> and          <code>dst</code> are the same<DD><CODE><A HREF="../../../java/awt/image/ImagingOpException.html">ImagingOpException</A></CODE> - if the image cannot be transformed         because of a data-processing error that might be          caused by an invalid image format, tile format, or         image-processing operation, or any other unsupported          operation.</DL></DD></DL><HR><A NAME="filter(java.awt.image.Raster, java.awt.image.WritableRaster)"><!-- --></A><H3>filter</H3><PRE>public final <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> <B>filter</B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A>&nbsp;src,                                   <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A>&nbsp;dst)</PRE>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?