colorconvertop.html
来自「API資料大全」· HTML 代码 · 共 583 行 · 第 1/3 页
HTML
583 行
<!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:34:01 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class ColorConvertOp</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/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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">java.awt.image</FONT><BR>Class ColorConvertOp</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A> | +--<B>java.awt.image.ColorConvertOp</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>ColorConvertOp</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 performs a pixel-by-pixel color conversion of the data in the source image. The resulting color values are scaled to the precision of the destination image. Color conversion can be specified via an array of ColorSpace objects or an array of ICC_Profile objects. <p> If the source is a BufferedImage with premultiplied alpha, the color components are divided by the alpha component before color conversion. If the destination is a BufferedImage with premultiplied alpha, the color components are multiplied by the alpha component after conversion. Rasters are treated as having no alpha channel, i.e. all bands are color bands. <p> If a RenderingHints object is specified in the constructor, the color rendering hint and the dithering hint may be used to control color conversion. <p> Note that Source and Destination may be the same object. <p><P><DL><DT><B>See Also: </B><DD><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 =========== --><!-- ======== 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/ColorConvertOp.html#ColorConvertOp(java.awt.color.ColorSpace, java.awt.color.ColorSpace, java.awt.RenderingHints)">ColorConvertOp</A></B>(<A HREF="../../../java/awt/color/ColorSpace.html">ColorSpace</A> srcCspace, <A HREF="../../../java/awt/color/ColorSpace.html">ColorSpace</A> dstCspace, <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Constructs a new ColorConvertOp from two ColorSpace objects.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/ColorConvertOp.html#ColorConvertOp(java.awt.color.ColorSpace, java.awt.RenderingHints)">ColorConvertOp</A></B>(<A HREF="../../../java/awt/color/ColorSpace.html">ColorSpace</A> cspace, <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Constructs a new ColorConvertOp from a ColorSpace object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/ColorConvertOp.html#ColorConvertOp(java.awt.color.ICC_Profile[], java.awt.RenderingHints)">ColorConvertOp</A></B>(<A HREF="../../../java/awt/color/ICC_Profile.html">ICC_Profile</A>[] profiles, <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Constructs a new ColorConvertOp from an array of ICC_Profiles.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/ColorConvertOp.html#ColorConvertOp(java.awt.RenderingHints)">ColorConvertOp</A></B>(<A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Constructs a new ColorConvertOp which will convert from a source color space to a destination color space.</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/ColorConvertOp.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, given this source.</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/ColorConvertOp.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 Raster with the correct size and number of bands, given this source.</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/ColorConvertOp.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> dest)</CODE><BR> ColorConverts the source BufferedImage.</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/ColorConvertOp.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> dest)</CODE><BR> ColorConverts the image data in the source Raster.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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.BufferedImage)">getBounds2D</A></B>(<A HREF="../../../java/awt/image/BufferedImage.html">BufferedImage</A> src)</CODE><BR> Returns the bounding box of the destination, given this source.</TD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?