📄 samplemodel.html
字号:
int y, int[] iArray, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets a pixel in the DataBuffer using an int array of samples for input.</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/SampleModel.html#setPixels(int, int, int, int, double[], java.awt.image.DataBuffer)">setPixels</A></B>(int x, int y, int w, int h, double[] dArray, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets all samples for a rectangle of pixels from a double array containing one sample per array element.</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/SampleModel.html#setPixels(int, int, int, int, float[], java.awt.image.DataBuffer)">setPixels</A></B>(int x, int y, int w, int h, float[] fArray, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets all samples for a rectangle of pixels from a float array containing one sample per array element.</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/SampleModel.html#setPixels(int, int, int, int, int[], java.awt.image.DataBuffer)">setPixels</A></B>(int x, int y, int w, int h, int[] iArray, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets all samples for a rectangle of pixels from an int array containing one sample per array element.</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/SampleModel.html#setSample(int, int, int, double, java.awt.image.DataBuffer)">setSample</A></B>(int x, int y, int b, double s, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a double for input.</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/SampleModel.html#setSample(int, int, int, float, java.awt.image.DataBuffer)">setSample</A></B>(int x, int y, int b, float s, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using a float for input.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/image/SampleModel.html#setSample(int, int, int, int, java.awt.image.DataBuffer)">setSample</A></B>(int x, int y, int b, int s, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets a sample in the specified band for the pixel located at (x,y) in the DataBuffer using an int for input.</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/SampleModel.html#setSamples(int, int, int, int, int, double[], java.awt.image.DataBuffer)">setSamples</A></B>(int x, int y, int w, int h, int b, double[] dArray, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets the samples in the specified band for the specified rectangle of pixels from a double array containing one sample per array element.</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/SampleModel.html#setSamples(int, int, int, int, int, float[], java.awt.image.DataBuffer)">setSamples</A></B>(int x, int y, int w, int h, int b, float[] fArray, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets the samples in the specified band for the specified rectangle of pixels from a float array containing one sample per array element.</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/SampleModel.html#setSamples(int, int, int, int, int, int[], java.awt.image.DataBuffer)">setSamples</A></B>(int x, int y, int w, int h, int b, int[] iArray, <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A> data)</CODE><BR> Sets the samples in the specified band for the specified rectangle of pixels from an int array containing one sample per array element.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="width"><!-- --></A><H3>width</H3><PRE>protected int <B>width</B></PRE><DL><DD>Width in pixels of the region of image data that this SampleModel describes.</DL><HR><A NAME="height"><!-- --></A><H3>height</H3><PRE>protected int <B>height</B></PRE><DL><DD>Height in pixels of the region of image data that this SampleModel describes.</DL><HR><A NAME="numBands"><!-- --></A><H3>numBands</H3><PRE>protected int <B>numBands</B></PRE><DL><DD>Number of bands of the image data that this SampleModel describes.</DL><HR><A NAME="dataType"><!-- --></A><H3>dataType</H3><PRE>protected int <B>dataType</B></PRE><DL><DD>Data type of the DataBuffer storing the pixel data.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/image/DataBuffer.html"><CODE>DataBuffer</CODE></A></DL></DD></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="SampleModel(int, int, int, int)"><!-- --></A><H3>SampleModel</H3><PRE>public <B>SampleModel</B>(int dataType, int w, int h, int numBands)</PRE><DL><DD>Constructs a SampleModel with the specified parameters.<DD><DL><DT><B>Parameters:</B><DD><CODE>dataType</CODE> - The data type of the DataBuffer storing the pixel data.<DD><CODE>w</CODE> - The width (in pixels) of the region of image data.<DD><CODE>h</CODE> - The height (in pixels) of the region of image data.<DD><CODE>numBands</CODE> - The number of bands of the image data.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>w</code> or <code>h</code> is not greater than 0<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the product of <code>w</code> and <code>h</code> is greater than <code>Integer.MAX_VALUE</code><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if <code>dataType</code> is not one of the supported data types</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public final int <B>getWidth</B>()</PRE><DL><DD>Returns the width in pixels.</DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public final int <B>getHeight</B>()</PRE><DL><DD>Returns the height in pixels.</DL><HR><A NAME="getNumBands()"><!-- --></A><H3>getNumBands</H3><PRE>public final int <B>getNumBands</B>()</PRE><DL><DD>Returns the total number of bands of image data.</DL><HR><A NAME="getNumDataElements()"><!-- --></A><H3>getNumDataElements</H3><PRE>public abstract int <B>getNumDataElements</B>()</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -