📄 java awt imaging.htm
字号:
<P></P>
<TD>An array of floats to be used as the first and only bank of this
<CODE>DataBuffer</CODE>.
<P></P>
<TR vAlign=top>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements of the array to be used.
<P></P>
<TR vAlign=top>
<TD><CODE>offset</CODE>
<P></P>
<TD>The offset of the first element of the array that will be used.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL><PRE><UL>
<LI>DataBufferFloat(float[][] dataArray, int size)
<P></P></LI></UL></PRE>
<DL><A name=53051>
<DT>
<DD>constructs a float-based <CODE>DataBuffer</CODE> with the specified data
arrays. Only the first size elements of each array are available for use by
this <CODE>DataBuffer</CODE>. The number of banks will be equal to
<CODE>dataArray.length</CODE>.
<P>
<TABLE cellPadding=3 border=3>
<CAPTION><FONT size=-1><B></B></FONT></CAPTION>
<TBODY>
<TR vAlign=top>
<TD rowSpan=2><EM>Parameters</EM>:<EM></EM>
<P></P>
<TD><CODE>dataArray</CODE>
<P></P>
<TD>An array of floats to be used as banks of this
<CODE>DataBuffer</CODE>.
<P></P>
<TR vAlign=top>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements of each array to be used.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL><PRE><UL>
<LI>DataBufferFloat(float[][] dataArray, int size, int[] offsets)
<P></P></LI></UL></PRE>
<DL><A name=53100>
<DT>
<DD>constructs a float-based <CODE>DataBuffer</CODE> with the specified data
arrays, size, and per-bank offsets. The number of banks is equal to
<CODE>dataArray.length</CODE>. Each array must be at least as large as
<CODE>size</CODE> + the corresponding <CODE>offset</CODE>. There must be an
entry in the <CODE>offsets</CODE> array for each data array.
<P>
<TABLE cellPadding=3 border=3>
<CAPTION><FONT size=-1><B></B></FONT></CAPTION>
<TBODY>
<TR vAlign=top>
<TD rowSpan=3><EM>Parameters</EM>:
<P></P>
<TD><CODE>dataArray</CODE>
<P></P>
<TD>An array of arrays of floats to be used as the banks of this
<CODE>DataBuffer</CODE>.
<P></P>
<TR vAlign=top>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements of each array to be used.
<P></P>
<TR vAlign=top>
<TD><CODE>offset</CODE>
<P></P>
<TD>An array of integer offsets, one for each bank.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL><A name=53147>
<H4>2.5.2.2 <IMG src="Java AWT Imaging.files/space.gif">The DataBufferDouble
Class</H4></A>
<TABLE border=0>
<TBODY>
<TR>
<TD><IMG src="Java AWT Imaging.files/cistine.gif"></TD>
<TD>
<HR>
<B>API:</B> <CODE>javax.media.jai.DataBufferDouble </CODE>
<HR>
</TD></TR></TBODY></TABLE><PRE><UL>
<LI>DataBufferDouble(int size)
<P></P></LI></UL></PRE>
<DL><A name=53162>
<DT>
<DD>constructs a double-based <CODE>DataBuffer</CODE> with a specified size.
<P>
<TABLE cellPadding=3 border=3>
<CAPTION><FONT size=-1><B></B></FONT></CAPTION>
<TBODY>
<TR vAlign=top>
<TD><EM>Parameters</EM>:<EM></EM>
<P></P>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements in the <CODE>DataBuffer</CODE>.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL><PRE><UL>
<LI>DataBufferDouble(int size, int numBanks)
<P></P></LI></UL></PRE>
<DL><A name=53192>
<DT>
<DD>constructs a double-based <CODE>DataBuffer</CODE> with a specified
number of banks, all of which are of a specified size.
<P>
<TABLE cellPadding=3 border=3>
<CAPTION><FONT size=-1><B></B></FONT></CAPTION>
<TBODY>
<TR vAlign=top>
<TD rowSpan=2><EM>Parameters</EM>:<EM></EM>
<P></P>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements in each bank of the
<CODE>DataBuffer</CODE>.
<P></P>
<TR vAlign=top>
<TD><CODE>numBanks</CODE>
<P></P>
<TD>The number of banks in the <CODE>DataBuffer</CODE>.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL><PRE><UL>
<LI>DataBufferDouble(double[] dataArray, int size)
<P></P></LI></UL></PRE>
<DL><A name=53233>
<DT>
<DD>constructs a double-based <CODE>DataBuffer</CODE> with the specified
data array. Only the first <CODE>size</CODE> elements are available for use
by this databuffer. The array must be large enough to hold <CODE>size</CODE>
elements.
<P>
<TABLE cellPadding=3 border=3>
<CAPTION><FONT size=-1><B></B></FONT></CAPTION>
<TBODY>
<TR vAlign=top>
<TD rowSpan=2><EM>Parameters</EM>:<EM></EM>
<P></P>
<TD><CODE>dataArray</CODE>
<P></P>
<TD>An array of doubles to be used as the first and only bank of this
<CODE>DataBuffer</CODE>.
<P></P>
<TR vAlign=top>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements of the array to be used.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL><PRE><UL>
<LI>DataBufferDouble(double[] dataArray, int size, int offset)
<P></P></LI></UL></PRE>
<DL><A name=53282>
<DT>
<DD>constructs a double-based <CODE>DataBuffer</CODE> with the specified
data array. Only the elements between <CODE>offset</CODE> and
(<CODE>offset</CODE> + <CODE>size</CODE> - 1) are available for use by this
data buffer. The array must be large enough to hold (<CODE>offset</CODE> +
<CODE>size</CODE>) elements.
<P>
<TABLE cellPadding=3 border=3>
<CAPTION><FONT size=-1><B></B></FONT></CAPTION>
<TBODY>
<TR vAlign=top>
<TD rowSpan=3><EM>Parameters</EM>:
<P></P>
<TD><CODE>dataArray</CODE>
<P></P>
<TD>An array of doubles to be used as the first and only bank of this
<CODE>DataBuffer</CODE>.
<P></P>
<TR vAlign=top>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements of the array to be used.
<P></P>
<TR vAlign=top>
<TD><CODE>offset</CODE>
<P></P>
<TD>The offset of the first element of the array that will be used.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL><PRE><UL>
<LI>DataBufferDouble(double[][] dataArray, int size)
<P></P></LI></UL></PRE>
<DL><A name=53339>
<DT>
<DD>constructs a double-based <CODE>DataBuffer</CODE> with the specified
data arrays. Only the first size elements of each array are available for
use by this <CODE>DataBuffer</CODE>. The number of banks will be equal to
<CODE>dataArray.length</CODE>.
<P>
<TABLE cellPadding=3 border=3>
<CAPTION><FONT size=-1><B></B></FONT></CAPTION>
<TBODY>
<TR vAlign=top>
<TD rowSpan=2><EM>Parameters</EM>:<EM></EM>
<P></P>
<TD><CODE>dataArray</CODE>
<P></P>
<TD>An array of doubles to be used as banks of this
<CODE>DataBuffer</CODE>.
<P></P>
<TR vAlign=top>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements of each array to be used.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL><PRE><UL>
<LI>DataBufferDouble(double[][] dataArray, int size, int[] offsets)
<P></P></LI></UL></PRE>
<DL><A name=53380>
<DT>
<DD>constructs a double-based <CODE>DataBuffer</CODE> with the specified
data arrays, size, and per-bank offsets. The number of banks is equal to
<CODE>dataArray.length</CODE>. Each array must be at least as large as
<CODE>size</CODE> + the corresponding <CODE>offset</CODE>. There must be an
entry in the offsets array for each data array.
<P>
<TABLE cellPadding=3 border=3>
<CAPTION><FONT size=-1><B></B></FONT></CAPTION>
<TBODY>
<TR vAlign=top>
<TD rowSpan=3><EM>Parameters</EM>:
<P></P>
<TD><CODE>dataArray</CODE>
<P></P>
<TD>An array of arrays of doubles to be used as the banks of this
<CODE>DataBuffer</CODE>.
<P></P>
<TR vAlign=top>
<TD><CODE>size</CODE>
<P></P>
<TD>The number of elements of each array to be used.
<P></P>
<TR vAlign=top>
<TD><CODE>offset</CODE>
<P></P>
<TD>An array of integer offsets, one for each bank.
<P></P></TR></TBODY></TABLE></A>
<P></P></DD></DL>
<P>
<HR>
<BR>
<CENTER><A
href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/JAITOC.fm.html"><IMG
alt=Contents src="Java AWT Imaging.files/contents.gif"></A> <A
href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Introduction.doc.html"><IMG
alt=Previous src="Java AWT Imaging.files/previous.gif"></A> <A
href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Programming-environ.doc.html"><IMG
alt=Next src="Java AWT Imaging.files/next.gif"></A>
<P><FONT size=5><I>Programming in Java Advanced Imaging</I></FONT>
</CENTER><BR>
<H5><A
href="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/copyright.html">Copyright</A>
© 1999, Sun Microsystems, Inc. All rights reserved.</H5><!-- Last updated: Tue Nov 02 17:07:28 1999 --></BLOCKQUOTE>
<SCRIPT language=JavaScript
src="Java AWT Imaging.files/s_code_remote.js"></SCRIPT>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -