⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 samplemodel.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
         int&nbsp;y,         int[]&nbsp;iArray,         <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;x,          int&nbsp;y,          int&nbsp;w,          int&nbsp;h,          double[]&nbsp;dArray,          <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;x,          int&nbsp;y,          int&nbsp;w,          int&nbsp;h,          float[]&nbsp;fArray,          <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;x,          int&nbsp;y,          int&nbsp;w,          int&nbsp;h,          int[]&nbsp;iArray,          <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;x,          int&nbsp;y,          int&nbsp;b,          double&nbsp;s,          <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;x,          int&nbsp;y,          int&nbsp;b,          float&nbsp;s,          <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;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&nbsp;x,          int&nbsp;y,          int&nbsp;b,          int&nbsp;s,          <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;x,           int&nbsp;y,           int&nbsp;w,           int&nbsp;h,           int&nbsp;b,           double[]&nbsp;dArray,           <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;x,           int&nbsp;y,           int&nbsp;w,           int&nbsp;h,           int&nbsp;b,           float[]&nbsp;fArray,           <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;x,           int&nbsp;y,           int&nbsp;w,           int&nbsp;h,           int&nbsp;b,           int[]&nbsp;iArray,           <A HREF="../../../java/awt/image/DataBuffer.html">DataBuffer</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;<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&nbsp;dataType,                   int&nbsp;w,                   int&nbsp;h,                   int&nbsp;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 + -