bufferedimage.html
来自「API資料大全」· HTML 代码 · 共 1,331 行 · 第 1/5 页
HTML
1,331 行
<TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#BufferedImage(int, int, int, java.awt.image.IndexColorModel)">BufferedImage</A></B>(int width, int height, int imageType, <A HREF="../../../java/awt/image/IndexColorModel.html">IndexColorModel</A> cm)</CODE><BR> Constructs a <code>BufferedImage</code> of one of the predefined image types: TYPE_BYTE_BINARY or TYPE_BYTE_INDEXED</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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><A HREF="../../../java/awt/image/BufferedImage.html#addTileObserver(java.awt.image.TileObserver)">addTileObserver</A></B>(<A HREF="../../../java/awt/image/TileObserver.html">TileObserver</A> to)</CODE><BR> Adds a tile observer.</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><A HREF="../../../java/awt/image/BufferedImage.html#coerceData(boolean)">coerceData</A></B>(boolean isAlphaPremultiplied)</CODE><BR> Forces the data to match the state specified in the <code>isAlphaPremultiplied</code> variable.</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><A HREF="../../../java/awt/image/BufferedImage.html#copyData(java.awt.image.WritableRaster)">copyData</A></B>(<A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A> outRaster)</CODE><BR> Computes an arbitrary rectangular region of the <code>BufferedImage</code> and copies it into a specified <code>WritableRaster</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Graphics2D.html">Graphics2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#createGraphics()">createGraphics</A></B>()</CODE><BR> Creates a <code>Graphics2D</code>, which can be used to draw into this <code>BufferedImage</code>.</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><A HREF="../../../java/awt/image/BufferedImage.html#flush()">flush</A></B>()</CODE><BR> Flushes all resources being used to cache optimization information.</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><A HREF="../../../java/awt/image/BufferedImage.html#getAlphaRaster()">getAlphaRaster</A></B>()</CODE><BR> Returns a <code>WritableRaster</code> representing the alpha channel for <code>BufferedImage</code> objects with <code>ColorModel</code> objects that support a separate spatial alpha channel, such as <code>ComponentColorModel</code> and <code>DirectColorModel</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getColorModel()">getColorModel</A></B>()</CODE><BR> Returns the <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/Raster.html">Raster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getData()">getData</A></B>()</CODE><BR> Returns the image as one large tile.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/Raster.html">Raster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getData(java.awt.Rectangle)">getData</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> rect)</CODE><BR> Computes and returns an arbitrary region of the <code>BufferedImage</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Graphics.html">Graphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getGraphics()">getGraphics</A></B>()</CODE><BR> This method returns a <A HREF="../../../java/awt/Graphics2D.html"><CODE>Graphics2D</CODE></A>, but is here for backwards compatibility.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getHeight()">getHeight</A></B>()</CODE><BR> Returns the height of the <code>BufferedImage</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getHeight(java.awt.image.ImageObserver)">getHeight</A></B>(<A HREF="../../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Returns the actual height of the image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getMinTileX()">getMinTileX</A></B>()</CODE><BR> Returns the minimum tile index in the x direction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getMinTileY()">getMinTileY</A></B>()</CODE><BR> Returns the minimum tile index in the y direction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getMinX()">getMinX</A></B>()</CODE><BR> Returns the minimum x coordinate of this <code>BufferedImage</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getMinY()">getMinY</A></B>()</CODE><BR> Returns the minimum y coordinate of this <code>BufferedImage</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getNumXTiles()">getNumXTiles</A></B>()</CODE><BR> Returns the number of tiles in the x direction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getNumYTiles()">getNumYTiles</A></B>()</CODE><BR> Returns the number of tiles in the y direction.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getProperty(java.lang.String)">getProperty</A></B>(<A HREF="../../../java/lang/String.html">String</A> name)</CODE><BR> Returns a property of the image by name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getProperty(java.lang.String, java.awt.image.ImageObserver)">getProperty</A></B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Returns a property of the image by name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/String.html">String</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getPropertyNames()">getPropertyNames</A></B>()</CODE><BR> Returns an array of names recognized by <A HREF="../../../java/awt/image/BufferedImage.html#getProperty(java.lang.String)"><CODE>getProperty(String)</CODE></A> or <code>null</code>, if no property names are recognized.</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><A HREF="../../../java/awt/image/BufferedImage.html#getRaster()">getRaster</A></B>()</CODE><BR> Returns the <A HREF="../../../java/awt/image/WritableRaster.html"><CODE>WritableRaster</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getRGB(int, int)">getRGB</A></B>(int x, int y)</CODE><BR> Returns an integer pixel in the default RGB color model (TYPE_INT_ARGB) and default sRGB colorspace.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getRGB(int, int, int, int, int[], int, int)">getRGB</A></B>(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)</CODE><BR> Returns an array of integer pixels in the default RGB color model (TYPE_INT_ARGB) and default sRGB color space, from a portion of the image data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/SampleModel.html">SampleModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getSampleModel()">getSampleModel</A></B>()</CODE><BR> Returns the <code>SampleModel</code> associated with this <code>BufferedImage</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/ImageProducer.html">ImageProducer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getSource()">getSource</A></B>()</CODE><BR> Returns the object that produces the pixels for the image.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/util/Vector.html">Vector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/BufferedImage.html#getSources()">getSources</A></B>()</CODE><BR> Returns a <A HREF="../../../java/util/Vector.html"><CODE>Vector</CODE></A> of <A HREF="../../../java/awt/image/RenderedImage.html"><CODE>RenderedImage</CODE></A> objects that are the immediate sources, not the sources of these immediate sources, of image data for this <code>BufferedImage</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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?