colormodel.html

来自「API資料大全」· HTML 代码 · 共 912 行 · 第 1/4 页

HTML
912
字号
          <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;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>&nbsp;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>&nbsp;model)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;srcX,          int&nbsp;srcY,          int&nbsp;srcW,          int&nbsp;srcH,          <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;model,          byte[]&nbsp;pixels,          int&nbsp;srcOff,          int&nbsp;srcScan)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;srcX,          int&nbsp;srcY,          int&nbsp;srcW,          int&nbsp;srcH,          <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;model,          int[]&nbsp;pixels,          int&nbsp;srcOff,          int&nbsp;srcScan)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&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>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>&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><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;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&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>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&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;<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>&nbsp;src,                          <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;destCM)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;src,                          <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;destCM)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;src,                          <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;destCM)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;model)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&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;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>&nbsp;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&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;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>&nbsp;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&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;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>&nbsp;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&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;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>&nbsp;<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>&nbsp;src,                          <A HREF="../../../../java/awt/image/ColorModel.html">ColorModel</A>&nbsp;destCM)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;model)</CODE>

⌨️ 快捷键说明

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