colorconvertop.html

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

HTML
583
字号
</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/ColorConvertOp.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 destination, given this source.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/color/ICC_Profile.html">ICC_Profile</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ColorConvertOp.html#getICC_Profiles()">getICC_Profiles</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the array of ICC_Profiles used to construct this ColorConvertOp.</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/ColorConvertOp.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 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/ColorConvertOp.html#getRenderingHints()">getRenderingHints</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the rendering hints used by this op.</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 =========== --><!-- ========= 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="ColorConvertOp(java.awt.RenderingHints)"><!-- --></A><H3>ColorConvertOp</H3><PRE>public <B>ColorConvertOp</B>(<A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A>&nbsp;hints)</PRE><DL><DD>Constructs a new ColorConvertOp which will convert from a source color space to a destination color space. The RenderingHints argument may be null. This Op can be used only with BufferedImages, and will convert directly from the ColorSpace of the source image to that of the destination.  The destination argument of the filter method cannot be specified as null.<DD><DL><DT><B>Parameters:</B><DD><CODE>hints</CODE> - the <code>RenderingHints</code> object used to control        the color conversion, or <code>null</code></DL></DD></DL><HR><A NAME="ColorConvertOp(java.awt.color.ColorSpace, java.awt.RenderingHints)"><!-- --></A><H3>ColorConvertOp</H3><PRE>public <B>ColorConvertOp</B>(<A HREF="../../../java/awt/color/ColorSpace.html">ColorSpace</A>&nbsp;cspace,                      <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A>&nbsp;hints)</PRE><DL><DD>Constructs a new ColorConvertOp from a ColorSpace object. The RenderingHints argument may be null.  This Op can be used only with BufferedImages, and is primarily useful when the <A HREF="../../../java/awt/image/ColorConvertOp.html#filter(java.awt.image.BufferedImage, java.awt.image.BufferedImage)"><CODE>filter</CODE></A> method is invoked with a destination argument of null. In that case, the ColorSpace defines the destination color space for the destination created by the filter method.  Otherwise, the ColorSpace defines an intermediate space to which the source is converted before being converted to the destination space.<DD><DL><DT><B>Parameters:</B><DD><CODE>cspace</CODE> - defines the destination <code>ColorSpace</code> or an        intermediate <code>ColorSpace</code><DD><CODE>hints</CODE> - the <code>RenderingHints</code> object used to control        the color conversion, or <code>null</code></DL></DD></DL><HR><A NAME="ColorConvertOp(java.awt.color.ColorSpace, java.awt.color.ColorSpace, java.awt.RenderingHints)"><!-- --></A><H3>ColorConvertOp</H3><PRE>public <B>ColorConvertOp</B>(<A HREF="../../../java/awt/color/ColorSpace.html">ColorSpace</A>&nbsp;srcCspace,                      <A HREF="../../../java/awt/color/ColorSpace.html">ColorSpace</A>&nbsp;dstCspace,                      <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A>&nbsp;hints)</PRE><DL><DD>Constructs a new ColorConvertOp from two ColorSpace objects. The RenderingHints argument may be null. This Op is primarily useful for calling the filter method on Rasters, in which case the two ColorSpaces define the operation to be performed on the Rasters.  In that case, the number of bands in the source Raster must match the number of components in srcCspace, and the number of bands in the destination Raster must match the number of components in dstCspace.  For BufferedImages, the two ColorSpaces define intermediate spaces through which the source is converted before being converted to the destination space.<DD><DL><DT><B>Parameters:</B><DD><CODE>srcCspace</CODE> - the source <code>ColorSpace</code><DD><CODE>dstCspace</CODE> - the destination <code>ColorSpace</code><DD><CODE>hints</CODE> - the <code>RenderingHints</code> object used to control        the color conversion, or <code>null</code></DL></DD></DL><HR><A NAME="ColorConvertOp(java.awt.color.ICC_Profile[], java.awt.RenderingHints)"><!-- --></A><H3>ColorConvertOp</H3><PRE>public <B>ColorConvertOp</B>(<A HREF="../../../java/awt/color/ICC_Profile.html">ICC_Profile</A>[]&nbsp;profiles,                      <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A>&nbsp;hints)</PRE><DL><DD>Constructs a new ColorConvertOp from an array of ICC_Profiles. The RenderingHints argument may be null. The sequence of profiles may include profiles that represent color spaces, profiles that represent effects, etc.  If the whole sequence does not represent a well-defined color conversion, an exception is thrown. <p>For BufferedImages, if the ColorSpace of the source BufferedImage does not match the requirements of the first profile in the array, the first conversion is to an appropriate ColorSpace. If the requirements of the last profile in the array are not met by the ColorSpace of the destination BufferedImage, the last conversion is to the destination's ColorSpace. <p>For Rasters, the number of bands in the source Raster must match the requirements of the first profile in the array, and the number of bands in the destination Raster must match the requirements of the last profile in the array.  The array must have at least two elements or calling the filter method for Rasters will throw an IllegalArgumentException.<DD><DL><DT><B>Parameters:</B><DD><CODE>profiles</CODE> - the array of <code>ICC_Profile</code> objects<DD><CODE>hints</CODE> - the <code>RenderingHints</code> object used to control        the color conversion, or <code>null</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - when the profile sequence does not             specify a well-defined color conversion</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="getICC_Profiles()"><!-- --></A><H3>getICC_Profiles</H3><PRE>public final <A HREF="../../../java/awt/color/ICC_Profile.html">ICC_Profile</A>[] <B>getICC_Profiles</B>()</PRE><DL><DD>Returns the array of ICC_Profiles used to construct this ColorConvertOp. Returns null if the ColorConvertOp was not constructed from such an array.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the array of <code>ICC_Profile</code> objects of this          <code>ColorConvertOp</code>, or <code>null</code> if this         <code>ColorConvertOp</code> was not constructed with an         array of <code>ICC_Profile</code> objects.</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;dest)</PRE><DL><DD>ColorConverts the source BufferedImage.   If the destination image is null, a BufferedImage will be created with an appropriate ColorModel.<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>

⌨️ 快捷键说明

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