colorconvertop.html
来自「API資料大全」· HTML 代码 · 共 583 行 · 第 1/3 页
HTML
583 行
<DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the source <code>BufferedImage</code> to be converted<DD><CODE>dest</CODE> - the destination <code>BufferedImage</code>, or <code>null</code><DT><B>Returns:</B><DD><code>dest</code> color converted from <code>src</code> or a new, converted <code>BufferedImage</code> if <code>dest</code> is <code>null</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if dest is null and this op was constructed using the constructor which takes only a RenderingHints argument, since the operation is ill defined.</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> src, <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> dest)</PRE><DL><DD>ColorConverts the image data in the source Raster. If the destination Raster is null, a new Raster will be created. The number of bands in the source and destination Rasters must meet the requirements explained above. The constructor used to create this ColorConvertOp must have provided enough information to define both source and destination color spaces. See above. Otherwise, an exception is thrown.<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 source <code>Raster</code> to be converted<DD><CODE>dest</CODE> - the destination <code>WritableRaster</code>, or <code>null</code><DT><B>Returns:</B><DD><code>dest</code> color converted from <code>src</code> or a new, converted <code>WritableRaster</code> if <code>dest</code> is <code>null</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the number of source or destination bands is incorrect, the source or destination color spaces are undefined, or this op was constructed with one of the constructors that applies only to operations on BufferedImages.</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> src)</PRE><DL><DD>Returns the bounding box of the destination, given this source. Note that this will be the same as the the bounding box of the source.<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 source <code>BufferedImage</code><DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that is the bounding box of the destination, given the specified <code>src</code></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> src)</PRE><DL><DD>Returns the bounding box of the destination, given this source. Note that this will be the same as the the bounding box of the source.<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 source <code>Raster</code><DT><B>Returns:</B><DD>a <code>Rectangle2D</code> that is the bounding box of the destination, given the specified <code>src</code></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> src, <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> destCM)</PRE><DL><DD>Creates a zeroed destination image with the correct size and number of bands, given this source.<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> - Source image for the filter operation.<DD><CODE>destCM</CODE> - ColorModel of the destination. If null, an appropriate ColorModel will be used.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>destCM</code> is <code>null</code> and this <code>ColorConvertOp</code> was created without any <code>ICC_Profile</code> or <code>ColorSpace</code> defined for the destination</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> src)</PRE><DL><DD>Creates a zeroed destination Raster with the correct size and number of bands, given this source.<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 specified <code>Raster</code><DT><B>Returns:</B><DD>a <code>WritableRaster</code> with the correct size and number of bands from the specified <code>src</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if this <code>ColorConvertOp</code> was created without sufficient information to define the <code>dst</code> and <code>src</code> color spaces</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> srcPt, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> dstPt)</PRE><DL><DD>Returns the location of the destination point given a point in the source. If <code>dstPt</code> is non-null, it will be used to hold the return value. Note that for this class, the destination point will be the same as the source point.<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>srcPt</CODE> - the specified source <code>Point2D</code><DD><CODE>dstPt</CODE> - the destination <code>Point2D</code><DT><B>Returns:</B><DD><code>dstPt</code> after setting its location to be the same as <code>srcPt</code></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 op.<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 of this <code>ColorConvertOp</code></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> </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/ColorConvertOp.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"> <A HREF="../../../java/awt/image/ByteLookupTable.html"><B>PREV CLASS</B></A> <A HREF="../../../java/awt/image/ColorModel.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="ColorConvertOp.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -
显示快捷键?