📄 raster.html
字号:
Returns <code>true</code> if <code>raster</code> is compatible with this <code>ColorModel</code> and <code>false</code> if it is not.</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>WritableRenderedImage.</B><B><A HREF="../../../../java/awt/image/WritableRenderedImage.html#setData(java.awt.image.Raster)">setData</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> r)</CODE><BR> Sets a rect of the image to the contents of the Raster r, which is assumed to be in the same coordinate space as the WritableRenderedImage.</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>AffineTransformOp.</B><B><A HREF="../../../../java/awt/image/AffineTransformOp.html#filter(java.awt.image.Raster, java.awt.image.WritableRaster)">filter</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src, <A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A> dst)</CODE><BR> Transforms the source <CODE>Raster</CODE> and stores the results in the destination <CODE>Raster</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>AffineTransformOp.</B><B><A HREF="../../../../java/awt/image/AffineTransformOp.html#getBounds2D(java.awt.image.Raster)">getBounds2D</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Returns the bounding box of the transformed destination.</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>AffineTransformOp.</B><B><A HREF="../../../../java/awt/image/AffineTransformOp.html#createCompatibleDestRaster(java.awt.image.Raster)">createCompatibleDestRaster</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Creates a zeroed destination <CODE>Raster</CODE> 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/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>RasterOp.</B><B><A HREF="../../../../java/awt/image/RasterOp.html#filter(java.awt.image.Raster, java.awt.image.WritableRaster)">filter</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src, <A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A> dest)</CODE><BR> Performs a single-input/single-output operation from a source Raster to a destination Raster.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>RasterOp.</B><B><A HREF="../../../../java/awt/image/RasterOp.html#getBounds2D(java.awt.image.Raster)">getBounds2D</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Returns the bounding box of the filtered destination Raster.</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>RasterOp.</B><B><A HREF="../../../../java/awt/image/RasterOp.html#createCompatibleDestRaster(java.awt.image.Raster)">createCompatibleDestRaster</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Creates a zeroed destination Raster 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/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>ColorConvertOp.</B><B><A HREF="../../../../java/awt/image/ColorConvertOp.html#filter(java.awt.image.Raster, java.awt.image.WritableRaster)">filter</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src, <A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A> dest)</CODE><BR> ColorConverts the image data in the source Raster.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>ColorConvertOp.</B><B><A HREF="../../../../java/awt/image/ColorConvertOp.html#getBounds2D(java.awt.image.Raster)">getBounds2D</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Returns the bounding box of the destination, given this source.</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>ColorConvertOp.</B><B><A HREF="../../../../java/awt/image/ColorConvertOp.html#createCompatibleDestRaster(java.awt.image.Raster)">createCompatibleDestRaster</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Creates a zeroed destination Raster with the correct size and number of bands, given this source.</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>RescaleOp.</B><B><A HREF="../../../../java/awt/image/RescaleOp.html#filter(java.awt.image.Raster, java.awt.image.WritableRaster)">filter</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src, <A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A> dst)</CODE><BR> Rescales the pixel data in the source Raster.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A></CODE></FONT></TD><TD><CODE><B>RescaleOp.</B><B><A HREF="../../../../java/awt/image/RescaleOp.html#getBounds2D(java.awt.image.Raster)">getBounds2D</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Returns the bounding box of the rescaled destination Raster.</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>RescaleOp.</B><B><A HREF="../../../../java/awt/image/RescaleOp.html#createCompatibleDestRaster(java.awt.image.Raster)">createCompatibleDestRaster</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> src)</CODE><BR> Creates a zeroed destination Raster with the correct size and number of bands, given this source.</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>IndexColorModel.</B><B><A HREF="../../../../java/awt/image/IndexColorModel.html#isCompatibleRaster(java.awt.image.Raster)">isCompatibleRaster</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> raster)</CODE><BR> Returns <code>true</code> if <code>raster</code> is compatible with this <code>ColorModel</code> or <code>false</code> if it is not compatible with this <code>ColorModel</code>.</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>IndexColorModel.</B><B><A HREF="../../../../java/awt/image/IndexColorModel.html#convertToIntDiscrete(java.awt.image.Raster, boolean)">convertToIntDiscrete</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A> raster, boolean forceARGB)</CODE><BR> Returns a new <code>BufferedImage</code> of TYPE_INT_ARGB or TYPE_INT_RGB that has a <code>Raster</code> with pixel data computed by expanding the indices in the source <code>Raster</code> using the color/alpha component arrays of this <code>ColorModel</code>.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../../java/awt/image/package-summary.html">java.awt.image</A> with parameters of type <A HREF="../../../../java/awt/image/Raster.html">Raster</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../java/awt/image/Raster.html#Raster(java.awt.image.SampleModel, java.awt.image.DataBuffer, java.awt.Rectangle, java.awt.Point, java.awt.image.Raster)">Raster</A></B>(<A HREF="../../../../java/awt/image/SampleModel.html">SampleModel</A> sampleModel, <A HREF="../../../../java/awt/image/DataBuffer.html">DataBuffer</A> dataBuffer, <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A> aRegion, <A HREF="../../../../java/awt/Point.html">Point</A> sampleModelTranslate, <A HREF="../../../../java/awt/image/Raster.html">Raster</A> parent)</CODE><BR> Constructs a Raster with the given SampleModel, DataBuffer, and parent.</TD></TR></TABLE> <P><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../java/awt/image/Raster.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV NEXT</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Raster.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -