colormodel.html
来自「API資料大全」· HTML 代码 · 共 912 行 · 第 1/4 页
HTML
912 行
<A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, int[] pixels, int off, int scansize)</CODE><BR> Choose which rows and columns of the delivered int pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PixelGrabber.</B><B><A HREF="../../../../java/awt/image/PixelGrabber.html#setColorModel(java.awt.image.ColorModel)">setColorModel</A></B>(<A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model)</CODE><BR> The setColorModel method is part of the ImageConsumer API which this class must implement to retrieve the pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PixelGrabber.</B><B><A HREF="../../../../java/awt/image/PixelGrabber.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)">setPixels</A></B>(int srcX, int srcY, int srcW, int srcH, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, byte[] pixels, int srcOff, int srcScan)</CODE><BR> The setPixels method is part of the ImageConsumer API which this class must implement to retrieve the pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>PixelGrabber.</B><B><A HREF="../../../../java/awt/image/PixelGrabber.html#setPixels(int, int, int, int, java.awt.image.ColorModel, int[], int, int)">setPixels</A></B>(int srcX, int srcY, int srcW, int srcH, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, int[] pixels, int srcOff, int srcScan)</CODE><BR> The setPixels method is part of the ImageConsumer API which this class must implement to retrieve the pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>RGBImageFilter.</B><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> model)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B>RGBImageFilter.</B><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> oldcm, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> newcm)</CODE><BR> Registers two ColorModel objects for substitution.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>RGBImageFilter.</B><B><A HREF="../../../../java/awt/image/RGBImageFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)">setPixels</A></B>(int x, int y, int w, int h, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, byte[] pixels, int off, int scansize)</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B>RGBImageFilter.</B><B><A HREF="../../../../java/awt/image/RGBImageFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, int[], int, int)">setPixels</A></B>(int x, int y, int w, int h, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, int[] pixels, int off, int scansize)</CODE><BR> 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> <A HREF="../../../../java/awt/image/BufferedImage.html">BufferedImage</A></CODE></FONT></TD><TD><CODE><B>LookupOp.</B><B><A HREF="../../../../java/awt/image/LookupOp.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.</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>BufferedImageOp.</B><B><A HREF="../../../../java/awt/image/BufferedImageOp.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.</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>ConvolveOp.</B><B><A HREF="../../../../java/awt/image/ConvolveOp.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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>ImageConsumer.</B><B><A HREF="../../../../java/awt/image/ImageConsumer.html#setColorModel(java.awt.image.ColorModel)">setColorModel</A></B>(<A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model)</CODE><BR> The ColorModel object used for the majority of the pixels reported using the setPixels method calls.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>ImageConsumer.</B><B><A HREF="../../../../java/awt/image/ImageConsumer.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)">setPixels</A></B>(int x, int y, int w, int h, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, byte[] pixels, int off, int scansize)</CODE><BR> The pixels of the image are delivered using one or more calls to the setPixels method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>ImageConsumer.</B><B><A HREF="../../../../java/awt/image/ImageConsumer.html#setPixels(int, int, int, int, java.awt.image.ColorModel, int[], int, int)">setPixels</A></B>(int x, int y, int w, int h, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, int[] pixels, int off, int scansize)</CODE><BR> The pixels of the image are delivered using one or more calls to the setPixels method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>CropImageFilter.</B><B><A HREF="../../../../java/awt/image/CropImageFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, byte[], int, int)">setPixels</A></B>(int x, int y, int w, int h, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, byte[] pixels, int off, int scansize)</CODE><BR> Determine whether the delivered byte pixels intersect the region to be extracted and passes through only that subset of pixels that appear in the output region.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>CropImageFilter.</B><B><A HREF="../../../../java/awt/image/CropImageFilter.html#setPixels(int, int, int, int, java.awt.image.ColorModel, int[], int, int)">setPixels</A></B>(int x, int y, int w, int h, <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model, int[] pixels, int off, int scansize)</CODE><BR> Determine if the delivered int pixels intersect the region to be extracted and pass through only that subset of pixels that appear in the output region.</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>AffineTransformOp.</B><B><A HREF="../../../../java/awt/image/AffineTransformOp.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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>BufferedImageFilter.</B><B><A HREF="../../../../java/awt/image/BufferedImageFilter.html#setColorModel(java.awt.image.ColorModel)">setColorModel</A></B>(<A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A> model)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?