affinetransformop.html

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

HTML
608
字号
<DL><DD>Transforms the source <CODE>Raster</CODE> and stores the results in the destination <CODE>Raster</CODE>.  This operation performs the transform band by band. <p> If the destination <CODE>Raster</CODE> is null, a new  <CODE>Raster</CODE> is created. An <CODE>IllegalArgumentException</CODE> may be thrown if the source is the same as the destination or if the number of bands in the source is not equal to the number of bands in the destination. <p> The coordinates of the rectangle returned by  <code>getBounds2D(Raster)</code> are not necessarily the same as the coordinates of the <code>WritableRaster</code> returned by this method.  If the upper-left corner coordinates of rectangle are negative then this part of the rectangle is not drawn.  If the coordinates  of the rectangle are positive then the filtered image is drawn at that position in the destination <code>Raster</code>. <p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/RasterOp.html#filter(java.awt.image.Raster, java.awt.image.WritableRaster)">filter</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/RasterOp.html">RasterOp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - The <CODE>Raster</CODE> to transform.<DD><CODE>dst</CODE> - The <CODE>Raster</CODE> in which to store the results of the  transformation.<DT><B>Returns:</B><DD>The transformed <CODE>Raster</CODE>.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/awt/image/ImagingOpException.html">ImagingOpException</A></CODE> - if the raster 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="getBounds2D(java.awt.image.BufferedImage)"><!-- --></A><H3>getBounds2D</H3><PRE>public final <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getBounds2D</B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;src)</PRE><DL><DD>Returns the bounding box of the transformed destination.  The rectangle returned is the actual bounding box of the  transformed points.  The coordinates of the upper-left corner of the returned rectangle might not be (0,&nbsp;0).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#getBounds2D(java.awt.image.BufferedImage)">getBounds2D</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 be transformed.<DT><B>Returns:</B><DD>The <CODE>Rectangle2D</CODE> representing the destination's bounding box.</DL></DD></DL><HR><A NAME="getBounds2D(java.awt.image.Raster)"><!-- --></A><H3>getBounds2D</H3><PRE>public final <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getBounds2D</B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A>&nbsp;src)</PRE><DL><DD>Returns the bounding box of the transformed destination.  The rectangle returned will be the actual bounding box of the transformed points.  The coordinates of the upper-left corner of the returned rectangle might not be (0,&nbsp;0).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/RasterOp.html#getBounds2D(java.awt.image.Raster)">getBounds2D</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/RasterOp.html">RasterOp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - The <CODE>Raster</CODE> to be transformed.<DT><B>Returns:</B><DD>The <CODE>Rectangle2D</CODE> representing the destination's bounding box.</DL></DD></DL><HR><A NAME="createCompatibleDestImage(java.awt.image.BufferedImage, java.awt.image.ColorModel)"><!-- --></A><H3>createCompatibleDestImage</H3><PRE>public <A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A> <B>createCompatibleDestImage</B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A>&nbsp;src,                                               <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;destCM)</PRE><DL><DD>Creates a zeroed destination image with the correct size and number of bands.  A <CODE>RasterFormatException</CODE> may be thrown if the  transformed width or height is equal to 0.   <p> If <CODE>destCM</CODE> is null, an appropriate <CODE>ColorModel</CODE> is used; this  <CODE>ColorModel</CODE> may have an alpha channel even if the source <CODE>ColorModel</CODE> is opaque.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#createCompatibleDestImage(java.awt.image.BufferedImage, java.awt.image.ColorModel)">createCompatibleDestImage</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 be transformed.<DD><CODE>destCM</CODE> - <CODE>ColorModel</CODE> of the destination.  If null, an appropriate <CODE>ColorModel</CODE> is used.<DT><B>Returns:</B><DD>The zeroed destination image.</DL></DD></DL><HR><A NAME="createCompatibleDestRaster(java.awt.image.Raster)"><!-- --></A><H3>createCompatibleDestRaster</H3><PRE>public <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> <B>createCompatibleDestRaster</B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A>&nbsp;src)</PRE><DL><DD>Creates a zeroed destination <CODE>Raster</CODE> with the correct size  and number of bands.  A <CODE>RasterFormatException</CODE> may be thrown  if the transformed width or height is equal to 0.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/RasterOp.html#createCompatibleDestRaster(java.awt.image.Raster)">createCompatibleDestRaster</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/RasterOp.html">RasterOp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - The <CODE>Raster</CODE> to be transformed.<DT><B>Returns:</B><DD>The zeroed destination <CODE>Raster</CODE>.</DL></DD></DL><HR><A NAME="getPoint2D(java.awt.geom.Point2D, java.awt.geom.Point2D)"><!-- --></A><H3>getPoint2D</H3><PRE>public final <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> <B>getPoint2D</B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;srcPt,                                <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;dstPt)</PRE><DL><DD>Returns the location of the corresponding destination point given a point in the source.  If <CODE>dstPt</CODE> is specified, it is used to hold the return value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#getPoint2D(java.awt.geom.Point2D, java.awt.geom.Point2D)">getPoint2D</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>dstPt</CODE> - The <CODE>Point2D</CODE> in which to store the result.<DT><B>Returns:</B><DD>The <CODE>Point2D</CODE> in the destination that corresponds to  the specified point in the source.</DL></DD></DL><HR><A NAME="getTransform()"><!-- --></A><H3>getTransform</H3><PRE>public final <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> <B>getTransform</B>()</PRE><DL><DD>Returns the affine transform used by this transform operation.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The <CODE>AffineTransform</CODE> associated with this op.</DL></DD></DL><HR><A NAME="getRenderingHints()"><!-- --></A><H3>getRenderingHints</H3><PRE>public final <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> <B>getRenderingHints</B>()</PRE><DL><DD>Returns the rendering hints used by this transform operation.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/image/BufferedImageOp.html#getRenderingHints()">getRenderingHints</A></CODE> in interface <CODE><A HREF="../../../java/awt/image/BufferedImageOp.html">BufferedImageOp</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The <CODE>RenderingHints</CODE> object associated with this op.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AffineTransformOp.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<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>  &nbsp;&nbsp;<A HREF="AffineTransformOp.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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