⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 indexcolormodel.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!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:08 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class  IndexColorModel</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>&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/IndexColorModel.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;<A HREF="../../../java/awt/image/ImageFilter.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/image/Kernel.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="IndexColorModel.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="#fields_inherited_from_class_java.awt.image.ColorModel">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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  IndexColorModel</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A>  |  +--<A HREF="../../../java/awt/image/ColorModel.html">java.awt.image.ColorModel</A>        |        +--<B>java.awt.image.IndexColorModel</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../java/awt/Transparency.html">Transparency</A></DD></DL><HR><DL><DT>public class <B>IndexColorModel</B><DT>extends <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A></DL><P>The <code>IndexColorModel</code> class is a <code>ColorModel</code> class that works with pixel values consisting of a single sample which is an index into a fixed colormap in the default sRGB ColorSpace.  The colormap specifies red, green, blue, and optional alpha components corresponding to each index.  All components are represented in the colormap as 8-bit unsigned integral values.  If alpha is not present, an opaque alpha component (alpha = 1.0) is assumed for each entry.  An optional transparent pixel value can be supplied that indicates a completely transparent pixel, regardless of any alpha component recorded for that pixel value. Note that alpha values in <code>IndexColorModel</code> objects are  never premultiplied. This color model is similar to an X11 PseudoColor visual. <p> The index represented by a pixel value is stored in the least significant n bits of the pixel representations passed to the methods of this class, where n is the pixel size specified to the constructor for a particular <code>IndexColorModel</code> object  and n must be between 1 and 16.   Higher order bits in pixel representations are assumed to be zero. For those methods that use a primitive array pixel representation of type <code>transferType</code>, the array length is always one.   The transfer types supported are DataBuffer.TYPE_BYTE and  DataBuffer.TYPE_USHORT.  A single int pixel  representation is valid for all objects of this class, since it is  always possible to represent pixel values used with this class in a  single int.  Therefore, methods that use this representation do  not throw an <code>IllegalArgumentException</code> due to an invalid  pixel value. <p> Many of the methods in this class are final.  The reason for this is that the underlying native graphics code makes assumptions about the layout and operation of this class and those assumptions are reflected in the implementations of the methods here that are marked final.  You can subclass this class for other reaons, but you cannot override or modify the behaviour of those methods.<P><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/ColorModel.html"><CODE>ColorModel</CODE></A>, <A HREF="../../../java/awt/color/ColorSpace.html"><CODE>ColorSpace</CODE></A>, <A HREF="../../../java/awt/image/DataBuffer.html"><CODE>DataBuffer</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_java.awt.image.ColorModel"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields 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#pixel_bits">pixel_bits</A>, <A HREF="../../../java/awt/image/ColorModel.html#transferType">transferType</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_java.awt.Transparency"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface java.awt.<A HREF="../../../java/awt/Transparency.html">Transparency</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/Transparency.html#BITMASK">BITMASK</A>, <A HREF="../../../java/awt/Transparency.html#OPAQUE">OPAQUE</A>, <A HREF="../../../java/awt/Transparency.html#TRANSLUCENT">TRANSLUCENT</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== 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/IndexColorModel.html#IndexColorModel(int, int, byte[], byte[], byte[])">IndexColorModel</A></B>(int&nbsp;bits,                int&nbsp;size,                byte[]&nbsp;r,                byte[]&nbsp;g,                byte[]&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>IndexColorModel</code> from the specified  arrays of red, green, and blue components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/IndexColorModel.html#IndexColorModel(int, int, byte[], byte[], byte[], byte[])">IndexColorModel</A></B>(int&nbsp;bits,                int&nbsp;size,                byte[]&nbsp;r,                byte[]&nbsp;g,                byte[]&nbsp;b,                byte[]&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>IndexColorModel</code> from the given  arrays of red, green, blue and alpha components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/IndexColorModel.html#IndexColorModel(int, int, byte[], byte[], byte[], int)">IndexColorModel</A></B>(int&nbsp;bits,                int&nbsp;size,                byte[]&nbsp;r,                byte[]&nbsp;g,                byte[]&nbsp;b,                int&nbsp;trans)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>IndexColorModel</code> from the given arrays  of red, green, and blue components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/IndexColorModel.html#IndexColorModel(int, int, byte[], int, boolean)">IndexColorModel</A></B>(int&nbsp;bits,                int&nbsp;size,                byte[]&nbsp;cmap,                int&nbsp;start,                boolean&nbsp;hasalpha)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>IndexColorModel</code> from a single  array of interleaved red, green, blue and optional alpha  components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/IndexColorModel.html#IndexColorModel(int, int, byte[], int, boolean, int)">IndexColorModel</A></B>(int&nbsp;bits,                int&nbsp;size,                byte[]&nbsp;cmap,                int&nbsp;start,                boolean&nbsp;hasalpha,                int&nbsp;trans)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>IndexColorModel</code> from a single array of  interleaved red, green, blue and optional alpha components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/IndexColorModel.html#IndexColorModel(int, int, int[], int, boolean, int, int)">IndexColorModel</A></B>(int&nbsp;bits,                int&nbsp;size,                int[]&nbsp;cmap,                int&nbsp;start,                boolean&nbsp;hasalpha,                int&nbsp;trans,                int&nbsp;transferType)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>IndexColorModel</code> from an array of  ints where each int is comprised of red, green, blue, and  optional alpha components in the default RGB color model format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/image/IndexColorModel.html#IndexColorModel(int, int, int[], int, int, java.math.BigInteger)">IndexColorModel</A></B>(int&nbsp;bits,                int&nbsp;size,                int[]&nbsp;cmap,                int&nbsp;start,                int&nbsp;transferType,                <A HREF="../../../java/math/BigInteger.html">BigInteger</A>&nbsp;validBits)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an <code>IndexColorModel</code> from an  <code>int</code> array where each <code>int</code> is  comprised of red, green, blue, and alpha             components in the default RGB color model format.</TD></TR></TABLE>&nbsp;

⌨️ 快捷键说明

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