📄 componentcolormodel.html
字号:
<CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#equals(java.lang.Object)">equals</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> obj)</CODE><BR> Compares this color model with another for equality.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getAlpha(int)">getAlpha</A></B>(int pixel)</CODE><BR> Returns the alpha component for the specified pixel, scaled from 0 to 255.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getAlpha(java.lang.Object)">getAlpha</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> inData)</CODE><BR> Returns the alpha component for the specified pixel, scaled from 0 to 255.</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/ComponentColorModel.html#getAlphaRaster(java.awt.image.WritableRaster)">getAlphaRaster</A></B>(<A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> raster)</CODE><BR> Returns a <CODE>Raster</CODE> representing the alpha channel of an image, extracted from the input <CODE>Raster</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getBlue(int)">getBlue</A></B>(int pixel)</CODE><BR> Returns the blue color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getBlue(java.lang.Object)">getBlue</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> inData)</CODE><BR> Returns the blue color component for the specified pixel, scaled from 0 to 255 in the default RGB <CODE>ColorSpace</CODE>, sRGB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getComponents(int, int[], int)">getComponents</A></B>(int pixel, int[] components, int offset)</CODE><BR> Returns an array of unnormalized color/alpha components given a pixel in this <CODE>ColorModel</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getComponents(java.lang.Object, int[], int)">getComponents</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> pixel, int[] components, int offset)</CODE><BR> Returns an array of unnormalized color/alpha components given a pixel in this <CODE>ColorModel</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getDataElement(int[], int)">getDataElement</A></B>(int[] components, int offset)</CODE><BR> Returns a pixel value represented as an int in this <CODE>ColorModel</CODE>, given an array of unnormalized color/alpha components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getDataElements(int[], int, java.lang.Object)">getDataElements</A></B>(int[] components, int offset, <A HREF="../../../java/lang/Object.html">Object</A> obj)</CODE><BR> Returns a data element array representation of a pixel in this <CODE>ColorModel</CODE>, given an array of unnormalized color/alpha components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getDataElements(int, java.lang.Object)">getDataElements</A></B>(int rgb, <A HREF="../../../java/lang/Object.html">Object</A> pixel)</CODE><BR> Returns a data element array representation of a pixel in this <CODE>ColorModel</CODE>, given an integer pixel representation in the default RGB color model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getGreen(int)">getGreen</A></B>(int pixel)</CODE><BR> Returns the green color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getGreen(java.lang.Object)">getGreen</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> inData)</CODE><BR> Returns the green color component for the specified pixel, scaled from 0 to 255 in the default RGB <CODE>ColorSpace</CODE>, sRGB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getRed(int)">getRed</A></B>(int pixel)</CODE><BR> Returns the red color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getRed(java.lang.Object)">getRed</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> inData)</CODE><BR> Returns the red color component for the specified pixel, scaled from 0 to 255 in the default RGB ColorSpace, sRGB.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getRGB(int)">getRGB</A></B>(int pixel)</CODE><BR> Returns the color/alpha components of the pixel in the default RGB color model format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#getRGB(java.lang.Object)">getRGB</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> inData)</CODE><BR> Returns the color/alpha components for the specified pixel in the default RGB color model format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#isCompatibleRaster(java.awt.image.Raster)">isCompatibleRaster</A></B>(<A HREF="../../../java/awt/image/Raster.html">Raster</A> raster)</CODE><BR> Returns true if <CODE>raster</CODE> is compatible with this <CODE>ColorModel</CODE>; false if it is not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/ComponentColorModel.html#isCompatibleSampleModel(java.awt.image.SampleModel)">isCompatibleSampleModel</A></B>(<A HREF="../../../java/awt/image/SampleModel.html">SampleModel</A> sm)</CODE><BR> Checks whether or not the specified <CODE>SampleModel</CODE> is compatible with this <CODE>ColorModel</CODE>.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.awt.image.ColorModel"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.awt.image.<A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/image/ColorModel.html#finalize()">finalize</A>, <A HREF="../../../java/awt/image/ColorModel.html#getColorSpace()">getColorSpace</A>, <A HREF="../../../java/awt/image/ColorModel.html#getComponentSize()">getComponentSize</A>, <A HREF="../../../java/awt/image/ColorModel.html#getComponentSize(int)">getComponentSize</A>, <A HREF="../../../java/awt/image/ColorModel.html#getNormalizedComponents(int[], int, float[], int)">getNormalizedComponents</A>, <A HREF="../../../java/awt/image/ColorModel.html#getNumColorComponents()">getNumColorComponents</A>, <A HREF="../../../java/awt/image/ColorModel.html#getNumComponents()">getNumComponents</A>, <A HREF="../../../java/awt/image/ColorModel.html#getPixelSize()">getPixelSize</A>, <A HREF="../../../java/awt/image/ColorModel.html#getRGBdefault()">getRGBdefault</A>, <A HREF="../../../java/awt/image/ColorModel.html#getTransferType()">getTransferType</A>, <A HREF="../../../java/awt/image/ColorModel.html#getTransparency()">getTransparency</A>, <A HREF="../../../java/awt/image/ColorModel.html#getUnnormalizedComponents(float[], int, int[], int)">getUnnormalizedComponents</A>, <A HREF="../../../java/awt/image/ColorModel.html#hasAlpha()">hasAlpha</A>, <A HREF="../../../java/awt/image/ColorModel.html#hashCode()">hashCode</A>, <A HREF="../../../java/awt/image/ColorModel.html#isAlphaPremultiplied()">isAlphaPremultiplied</A>, <A HREF="../../../java/awt/image/ColorModel.html#toString()">toString</A></CODE></TD></TR></TABLE> <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#getClass()">getClass</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#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> <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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -