writableraster.html

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

HTML
842
字号
<TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createBandedRaster(int, int, int, int, java.awt.Point)">createBandedRaster</A></B>(int&nbsp;dataType,                   int&nbsp;w,                   int&nbsp;h,                   int&nbsp;bands,                   <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Raster based on a BandedSampleModel with the specified data type, width, height, and number of bands.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createBandedRaster(int, int, int, int, int[], int[], java.awt.Point)">createBandedRaster</A></B>(int&nbsp;dataType,                   int&nbsp;w,                   int&nbsp;h,                   int&nbsp;scanlineStride,                   int[]&nbsp;bankIndices,                   int[]&nbsp;bandOffsets,                   <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Raster based on a BandedSampleModel with the specified data type, width, height, scanline stride, bank indices and band offsets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createPackedRaster(int, int, int, int[], java.awt.Point)">createPackedRaster</A></B>(int&nbsp;dataType,                   int&nbsp;w,                   int&nbsp;h,                   int[]&nbsp;bandMasks,                   <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Raster based on a SinglePixelPackedSampleModel with the specified data type, width, height, and band masks.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createPackedRaster(int, int, int, int, int, java.awt.Point)">createPackedRaster</A></B>(int&nbsp;dataType,                   int&nbsp;w,                   int&nbsp;h,                   int&nbsp;bands,                   int&nbsp;bitsPerBand,                   <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Raster based on a packed SampleModel with the specified data type, width, height, number of bands, and bits per band.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createInterleavedRaster(java.awt.image.DataBuffer, int, int, int, int, int[], java.awt.Point)">createInterleavedRaster</A></B>(<A HREF="../../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;dataBuffer,                        int&nbsp;w,                        int&nbsp;h,                        int&nbsp;scanlineStride,                        int&nbsp;pixelStride,                        int[]&nbsp;bandOffsets,                        <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Raster based on a PixelInterleavedSampleModel with the specified DataBuffer, width, height, scanline stride, pixel stride, and band offsets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createBandedRaster(java.awt.image.DataBuffer, int, int, int, int[], int[], java.awt.Point)">createBandedRaster</A></B>(<A HREF="../../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;dataBuffer,                   int&nbsp;w,                   int&nbsp;h,                   int&nbsp;scanlineStride,                   int[]&nbsp;bankIndices,                   int[]&nbsp;bandOffsets,                   <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Raster based on a BandedSampleModel with the specified DataBuffer, width, height, scanline stride, bank indices, and band offsets.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createPackedRaster(java.awt.image.DataBuffer, int, int, int, int[], java.awt.Point)">createPackedRaster</A></B>(<A HREF="../../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;dataBuffer,                   int&nbsp;w,                   int&nbsp;h,                   int&nbsp;scanlineStride,                   int[]&nbsp;bandMasks,                   <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Raster based on a SinglePixelPackedSampleModel with the specified DataBuffer, width, height, scanline stride, and band masks.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createPackedRaster(java.awt.image.DataBuffer, int, int, int, java.awt.Point)">createPackedRaster</A></B>(<A HREF="../../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;dataBuffer,                   int&nbsp;w,                   int&nbsp;h,                   int&nbsp;bitsPerPixel,                   <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a Raster based on a MultiPixelPackedSampleModel with the specified DataBuffer, width, height, and bits per pixel.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><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>&nbsp;sm,                     <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>static&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><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>&nbsp;sm,                     <A HREF="../../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;db,                     <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;location)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createCompatibleWritableRaster()">createCompatibleWritableRaster</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a compatible WritableRaster the same size as this Raster with the same SampleModel and a new initialized DataBuffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createCompatibleWritableRaster(int, int)">createCompatibleWritableRaster</A></B>(int&nbsp;w,                               int&nbsp;h)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a compatible WritableRaster with the specified size, a new SampleModel, and a new initialized DataBuffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createCompatibleWritableRaster(java.awt.Rectangle)">createCompatibleWritableRaster</A></B>(<A HREF="../../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;rect)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a compatible WritableRaster with location (minX, minY) and size (width, height) specified by rect, a new SampleModel, and a new initialized DataBuffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>Raster.</B><B><A HREF="../../../../java/awt/image/Raster.html#createCompatibleWritableRaster(int, int, int, int)">createCompatibleWritableRaster</A></B>(int&nbsp;x,                               int&nbsp;y,                               int&nbsp;w,                               int&nbsp;h)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a compatible WritableRaster with the specified location (minX, minY) and size (width, height), a new SampleModel, and a new initialized DataBuffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>ColorModel.</B><B><A HREF="../../../../java/awt/image/ColorModel.html#createCompatibleWritableRaster(int, int)">createCompatibleWritableRaster</A></B>(int&nbsp;w,                               int&nbsp;h)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a <code>WritableRaster</code> with the specified width and height that has a data layout (<code>SampleModel</code>) compatible with this <code>ColorModel</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>ColorModel.</B><B><A HREF="../../../../java/awt/image/ColorModel.html#getAlphaRaster(java.awt.image.WritableRaster)">getAlphaRaster</A></B>(<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A>&nbsp;raster)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>Raster</code> representing the alpha channel of an image, extracted from the input <code>Raster</code>, provided that pixel values of this <code>ColorModel</code> represent color and alpha information as separate spatial bands (e.g.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>PackedColorModel.</B><B><A HREF="../../../../java/awt/image/PackedColorModel.html#getAlphaRaster(java.awt.image.WritableRaster)">getAlphaRaster</A></B>(<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A>&nbsp;raster)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <A HREF="../../../../java/awt/image/WritableRaster.html"><CODE>WritableRaster</CODE></A> representing the alpha channel of  an image, extracted from the input <code>WritableRaster</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A></CODE></FONT></TD><TD><CODE><B>ConvolveOp.</B><B><A HREF="../../../../java/awt/image/ConvolveOp.html#filter(java.awt.image.Raster, java.awt.image.WritableRaster)">filter</A></B>(<A HREF="../../../../java/awt/image/Raster.html">Raster</A>&nbsp;src,       <A HREF="../../../../java/awt/image/WritableRaster.html">WritableRaster</A>&nbsp;dst)</CODE>

⌨️ 快捷键说明

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