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

📄 rgbimagefilter.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/image/IndexColorModel.html">IndexColorModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/RGBImageFilter.html#filterIndexColorModel(java.awt.image.IndexColorModel)">filterIndexColorModel</A></B>(<A HREF="../../../java/awt/image/IndexColorModel.html">IndexColorModel</A>&nbsp;icm)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filters an IndexColorModel object by running each entry in its color tables through the filterRGB function that RGBImageFilter subclasses must provide.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/RGBImageFilter.html#filterRGB(int, int, int)">filterRGB</A></B>(int&nbsp;x,          int&nbsp;y,          int&nbsp;rgb)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subclasses must specify a method to convert a single input pixel in the default RGB ColorModel to a single output pixel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/RGBImageFilter.html#filterRGBPixels(int, int, int, int, int[], int, int)">filterRGBPixels</A></B>(int&nbsp;x,                int&nbsp;y,                int&nbsp;w,                int&nbsp;h,                int[]&nbsp;pixels,                int&nbsp;off,                int&nbsp;scansize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Filters a buffer of pixels in the default RGB ColorModel by passing them one by one through the filterRGB method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/RGBImageFilter.html#setColorModel(java.awt.image.ColorModel)">setColorModel</A></B>(<A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;model)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the ColorModel is an IndexColorModel, and the subclass has set the canFilterIndexColorModel flag to true, we substitute a filtered version of the color model here and wherever that original ColorModel object appears in the setPixels methods.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/RGBImageFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)">setPixels</A></B>(int&nbsp;x,          int&nbsp;y,          int&nbsp;w,          int&nbsp;h,          <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;model,          byte[]&nbsp;pixels,          int&nbsp;off,          int&nbsp;scansize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/RGBImageFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, int[], int, int)">setPixels</A></B>(int&nbsp;x,          int&nbsp;y,          int&nbsp;w,          int&nbsp;h,          <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;model,          int[]&nbsp;pixels,          int&nbsp;off,          int&nbsp;scansize)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the ColorModel object is the same one that has already been converted, then simply passes the pixels through with the converted ColorModel, otherwise converts the buffer of integer pixels to the default RGB ColorModel and passes the converted buffer to the filterRGBPixels method to be converted one by one.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/RGBImageFilter.html#substituteColorModel(java.awt.image.ColorModel, java.awt.image.ColorModel)">substituteColorModel</A></B>(<A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;oldcm,                     <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;newcm)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Registers two ColorModel objects for substitution.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.awt.image.ImageFilter"><!-- --></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/ImageFilter.html">ImageFilter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/image/ImageFilter.html#clone()">clone</A>, <A HREF="../../../java/awt/image/ImageFilter.html#getFilterInstance(java.awt.image.ImageConsumer)">getFilterInstance</A>, <A HREF="../../../java/awt/image/ImageFilter.html#imageComplete(int)">imageComplete</A>, <A HREF="../../../java/awt/image/ImageFilter.html#resendTopDownLeftRight(java.awt.image.ImageProducer)">resendTopDownLeftRight</A>, <A HREF="../../../java/awt/image/ImageFilter.html#setDimensions(int, int)">setDimensions</A>, <A HREF="../../../java/awt/image/ImageFilter.html#setHints(int)">setHints</A>, <A HREF="../../../java/awt/image/ImageFilter.html#setProperties(java.util.Hashtable)">setProperties</A></CODE></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#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 =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="origmodel"><!-- --></A><H3>origmodel</H3><PRE>protected <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> <B>origmodel</B></PRE><DL><DD>The <code>ColorModel</code> to be replaced by <code>newmodel</code> when the user calls  <A HREF="../../../java/awt/image/RGBImageFilter.html#substituteColorModel(java.awt.image.ColorModel, java.awt.image.ColorModel)"><CODE>substituteColorModel</CODE></A>.</DL><HR><A NAME="newmodel"><!-- --></A><H3>newmodel</H3><PRE>protected <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> <B>newmodel</B></PRE><DL><DD>The <code>ColorModel</code> with which to replace <code>origmodel</code> when the user calls  <code>substituteColorModel</code>.</DL><HR><A NAME="canFilterIndexColorModel"><!-- --></A><H3>canFilterIndexColorModel</H3><PRE>protected boolean <B>canFilterIndexColorModel</B></PRE><DL><DD>This boolean indicates whether or not it is acceptable to apply the color filtering of the filterRGB method to the color table entries of an IndexColorModel object in lieu of pixel by pixel filtering.  Subclasses should set this variable to true in their constructor if their filterRGB method does not depend on the coordinate of the pixel being filtered.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/RGBImageFilter.html#substituteColorModel(java.awt.image.ColorModel, java.awt.image.ColorModel)"><CODE>substituteColorModel(java.awt.image.ColorModel, java.awt.image.ColorModel)</CODE></A>, <A HREF="../../../java/awt/image/RGBImageFilter.html#filterRGB(int, int, int)"><CODE>filterRGB(int, int, int)</CODE></A>, <A HREF="../../../java/awt/image/IndexColorModel.html"><CODE>IndexColorModel</CODE></A></DL></DD></DL><!-- ========= 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="RGBImageFilter()"><!-- --></A><H3>RGBImageFilter</H3><PRE>public <B>RGBImageFilter</B>()</PRE><DL></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="setColorModel(java.awt.image.ColorModel)"><!-- --></A><H3>setColorModel</H3><PRE>public void <B>setColorModel</B>(<A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;model)</PRE><DL><DD>If the ColorModel is an IndexColorModel, and the subclass has set the canFilterIndexColorModel flag to true, we substitute a filtered version of the color model here and wherever

⌨️ 快捷键说明

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