raster.html
来自「API資料大全」· HTML 代码 · 共 1,295 行 · 第 1/5 页
HTML
1,295 行
Creates a Raster with the specified SampleModel and DataBuffer.</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/Raster.html#createTranslatedChild(int, int)">createTranslatedChild</A></B>(int childMinX, int childMinY)</CODE><BR> Create a Raster with the same size, SampleModel and DataBuffer as this one, but with a different location.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#createWritableRaster(java.awt.image.SampleModel, java.awt.image.DataBuffer, java.awt.Point)">createWritableRaster</A></B>(<A HREF="../../../java/awt/image/SampleModel.html">SampleModel</A> sm, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> db, <A HREF="../../../java/awt/Point.html">Point</A> location)</CODE><BR> Creates a WritableRaster with the specified SampleModel and DataBuffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#createWritableRaster(java.awt.image.SampleModel, java.awt.Point)">createWritableRaster</A></B>(<A HREF="../../../java/awt/image/SampleModel.html">SampleModel</A> sm, <A HREF="../../../java/awt/Point.html">Point</A> location)</CODE><BR> Creates a WritableRaster with the specified SampleModel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getBounds()">getBounds</A></B>()</CODE><BR> Returns the bounding Rectangle of this Raster.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getDataBuffer()">getDataBuffer</A></B>()</CODE><BR> Returns the DataBuffer associated with this Raster.</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/Raster.html#getDataElements(int, int, int, int, java.lang.Object)">getDataElements</A></B>(int x, int y, int w, int h, <A HREF="../../../java/lang/Object.html">Object</A> outData)</CODE><BR> Returns the pixel data for the specified rectangle of pixels in a primitive array of type TransferType.</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/Raster.html#getDataElements(int, int, java.lang.Object)">getDataElements</A></B>(int x, int y, <A HREF="../../../java/lang/Object.html">Object</A> outData)</CODE><BR> Returns data for a single pixel in a primitive array of type TransferType.</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/Raster.html#getHeight()">getHeight</A></B>()</CODE><BR> Returns the height in pixels of the Raster.</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/Raster.html#getMinX()">getMinX</A></B>()</CODE><BR> Returns the minimum valid X coordinate of the Raster.</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/Raster.html#getMinY()">getMinY</A></B>()</CODE><BR> Returns the minimum valid Y coordinate of the Raster.</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/Raster.html#getNumBands()">getNumBands</A></B>()</CODE><BR> Returns the number of bands (samples per pixel) in this Raster.</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/Raster.html#getNumDataElements()">getNumDataElements</A></B>()</CODE><BR> Returns the number of data elements needed to transfer one pixel via the getDataElements and setDataElements methods.</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/Raster.html#getParent()">getParent</A></B>()</CODE><BR> Returns the parent Raster (if any) of this Raster, or else null.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getPixel(int, int, double[])">getPixel</A></B>(int x, int y, double[] dArray)</CODE><BR> Returns the samples in an array of double for the specified pixel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getPixel(int, int, float[])">getPixel</A></B>(int x, int y, float[] fArray)</CODE><BR> Returns the samples in an array of float for the specified pixel.</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/Raster.html#getPixel(int, int, int[])">getPixel</A></B>(int x, int y, int[] iArray)</CODE><BR> Returns the samples in an array of int for the specified pixel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getPixels(int, int, int, int, double[])">getPixels</A></B>(int x, int y, int w, int h, double[] dArray)</CODE><BR> Returns a double array containing all samples for a rectangle of pixels, one sample per array element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getPixels(int, int, int, int, float[])">getPixels</A></B>(int x, int y, int w, int h, float[] fArray)</CODE><BR> Returns a float array containing all samples for a rectangle of pixels, one sample per array element.</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/Raster.html#getPixels(int, int, int, int, int[])">getPixels</A></B>(int x, int y, int w, int h, int[] iArray)</CODE><BR> Returns an int array containing all samples for a rectangle of pixels, one sample per array element.</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/Raster.html#getSample(int, int, int)">getSample</A></B>(int x, int y, int b)</CODE><BR> Returns the sample in a specified band for the pixel located at (x,y) as an int.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getSampleDouble(int, int, int)">getSampleDouble</A></B>(int x, int y, int b)</CODE><BR> Returns the sample in a specified band for a pixel located at (x,y) as a double.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getSampleFloat(int, int, int)">getSampleFloat</A></B>(int x, int y, int b)</CODE><BR> Returns the sample in a specified band for the pixel located at (x,y) as a float.</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/Raster.html#getSampleModel()">getSampleModel</A></B>()</CODE><BR> Returns the SampleModel that describes the layout of the image data.</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/Raster.html#getSampleModelTranslateX()">getSampleModelTranslateX</A></B>()</CODE><BR> Returns the X translation from the coordinate system of the SampleModel to that of the Raster.</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/Raster.html#getSampleModelTranslateY()">getSampleModelTranslateY</A></B>()</CODE><BR> Returns the Y translation from the coordinate system of the SampleModel to that of the Raster.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/Raster.html#getSamples(int, int, int, int, int, double[])">getSamples</A></B>(int x, int y, int w, int h, int b, double[] dArray)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?