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

📄 imagecomponent3d.html

📁 java 3d帮助文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    java.awt.image.RenderedImage&nbsp;image)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this image component at the specified index to the specified RenderedImage object.</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="../../../javax/media/j3d/ImageComponent3D.html#set(java.awt.image.RenderedImage[])">set</A></B>(java.awt.image.RenderedImage[]&nbsp;images)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the array of images in this image component to the specified array of RenderedImage objects.</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="../../../javax/media/j3d/ImageComponent3D.html#setSubImage(int, java.awt.image.RenderedImage, int, int, int, int, int, int)">setSubImage</A></B>(int&nbsp;index,            java.awt.image.RenderedImage&nbsp;image,            int&nbsp;width,            int&nbsp;height,            int&nbsp;srcX,            int&nbsp;srcY,            int&nbsp;dstX,            int&nbsp;dstY)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Modifies a contiguous subregion of a particular slice of image of this ImageComponent3D object.</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="../../../javax/media/j3d/ImageComponent3D.html#updateData(javax.media.j3d.ImageComponent3D.Updater, int, int, int, int, int)">updateData</A></B>(<A HREF="../../../javax/media/j3d/ImageComponent3D.Updater.html">ImageComponent3D.Updater</A>&nbsp;updater,           int&nbsp;index,           int&nbsp;x,           int&nbsp;y,           int&nbsp;width,           int&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates a particular slice of image data that is accessed by reference.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.media.j3d.ImageComponent"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/ImageComponent.html">ImageComponent</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/ImageComponent.html#getFormat()">getFormat</A>, <A HREF="../../../javax/media/j3d/ImageComponent.html#getHeight()">getHeight</A>, <A HREF="../../../javax/media/j3d/ImageComponent.html#getWidth()">getWidth</A>, <A HREF="../../../javax/media/j3d/ImageComponent.html#isByReference()">isByReference</A>, <A HREF="../../../javax/media/j3d/ImageComponent.html#isYUp()">isYUp</A>, <A HREF="../../../javax/media/j3d/ImageComponent.html#setYUp(boolean)">setYUp</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.media.j3d.NodeComponent"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/NodeComponent.html">NodeComponent</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/NodeComponent.html#cloneNodeComponent(boolean)">cloneNodeComponent</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#duplicateNodeComponent(javax.media.j3d.NodeComponent)">duplicateNodeComponent</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#duplicateNodeComponent(javax.media.j3d.NodeComponent, boolean)">duplicateNodeComponent</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#getDuplicateOnCloneTree()">getDuplicateOnCloneTree</A>, <A HREF="../../../javax/media/j3d/NodeComponent.html#setDuplicateOnCloneTree(boolean)">setDuplicateOnCloneTree</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.media.j3d.SceneGraphObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.media.j3d.<A HREF="../../../javax/media/j3d/SceneGraphObject.html">SceneGraphObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/media/j3d/SceneGraphObject.html#clearCapability(int)">clearCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#clearCapabilityIsFrequent(int)">clearCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#duplicateSceneGraphObject(javax.media.j3d.SceneGraphObject)">duplicateSceneGraphObject</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getCapability(int)">getCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getCapabilityIsFrequent(int)">getCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#getUserData()">getUserData</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#isCompiled()">isCompiled</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#isLive()">isLive</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setCapability(int)">setCapability</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setCapabilityIsFrequent(int)">setCapabilityIsFrequent</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#setUserData(java.lang.Object)">setUserData</A>, <A HREF="../../../javax/media/j3d/SceneGraphObject.html#updateNodeReferences(javax.media.j3d.NodeReferenceTable)">updateNodeReferences</A></CODE></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.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="ImageComponent3D(int, int, int, int)"><!-- --></A><H3>ImageComponent3D</H3><PRE>public <B>ImageComponent3D</B>(int&nbsp;format,                        int&nbsp;width,                        int&nbsp;height,                        int&nbsp;depth)</PRE><DL><DD>Constructs a 3D image component object using the specified format, width, height, and depth.  Default values are used for all other parameters.  The default values are as follows: <ul> array of images : null<br> </ul><P><DT><B>Parameters:</B><DD><CODE>format</CODE> - the image component format, one of: FORMAT_RGB, FORMAT_RGBA, etc.<DD><CODE>width</CODE> - the number of columns of pixels in this image component object<DD><CODE>height</CODE> - the number of rows of pixels in this image component object<DD><CODE>depth</CODE> - the number of 2D slices in this image component object<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if format is invalid, or if any of width, height, or depth are not positive.</DL><HR><A NAME="ImageComponent3D(int, java.awt.image.BufferedImage[])"><!-- --></A><H3>ImageComponent3D</H3><PRE>public <B>ImageComponent3D</B>(int&nbsp;format,                        java.awt.image.BufferedImage[]&nbsp;images)</PRE><DL><DD>Constructs a 3D image component object using the specified format, and the BufferedImage array. Default values are used for all other parameters.<P><DT><B>Parameters:</B><DD><CODE>format</CODE> - the image component format, one of: FORMAT_RGB, FORMAT_RGBA etc.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if format is invalid, or if the width or height of the first image are not positive.</DL><HR><A NAME="ImageComponent3D(int, java.awt.image.RenderedImage[])"><!-- --></A><H3>ImageComponent3D</H3><PRE>public <B>ImageComponent3D</B>(int&nbsp;format,                        java.awt.image.RenderedImage[]&nbsp;images)</PRE><DL><DD>Constructs a 3D image component object using the specified format, and the RenderedImage array. Default values are used for all other parameters.<P><DT><B>Parameters:</B><DD><CODE>format</CODE> - the image component format, one of: FORMAT_RGB, FORMAT_RGBA etc.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if format is invalid, or if the width or height of the first image are not positive.<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL><HR><A NAME="ImageComponent3D(int, int, int, int, boolean, boolean)"><!-- --></A><H3>ImageComponent3D</H3><PRE>public <B>ImageComponent3D</B>(int&nbsp;format,                        int&nbsp;width,                        int&nbsp;height,                        int&nbsp;depth,                        boolean&nbsp;byReference,                        boolean&nbsp;yUp)</PRE><DL><DD>Constructs a 3D image component object using the specified format, width, height, depth, byReference flag, and yUp flag. Default values are used for all other parameters.<P><DT><B>Parameters:</B><DD><CODE>format</CODE> - the image component format, one of: FORMAT_RGB, FORMAT_RGBA, etc.<DD><CODE>width</CODE> - the number of columns of pixels in this image component object<DD><CODE>height</CODE> - the number of rows of pixels in this image component object<DD><CODE>depth</CODE> - the number of 2D slices in this image component object<DD><CODE>byReference</CODE> - a flag that indicates whether the data is copied into this image component object or is accessed by reference.<DD><CODE>yUp</CODE> - a flag that indicates the y-orientation of this image component.  If yUp is set to true, the origin of the image is the lower left; otherwise, the origin of the image is the upper left.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if format is invalid, or if any of width, height, or depth are not positive.<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL><HR><A NAME="ImageComponent3D(int, java.awt.image.BufferedImage[], boolean, boolean)"><!-- --></A><H3>ImageComponent3D</H3><PRE>public <B>ImageComponent3D</B>(int&nbsp;format,                        java.awt.image.BufferedImage[]&nbsp;images,                        boolean&nbsp;byReference,                        boolean&nbsp;yUp)</PRE><DL><DD>Constructs a 3D image component object using the specified format, BufferedImage array, byReference flag, and yUp flag. Default values are used for all other parameters.<P><DT><B>Parameters:</B><DD><CODE>format</CODE> - the image component format, one of: FORMAT_RGB, FORMAT_RGBA etc.<DD><CODE>byReference</CODE> - a flag that indicates whether the data is copied into this image component object or is accessed by reference.<DD><CODE>yUp</CODE> - a flag that indicates the y-orientation of this image component.  If yUp is set to true, the origin of the image is the lower left; otherwise, the origin of the image is the upper left.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if format is invalid, or if the width or height of the first image are not positive.<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL><HR><A NAME="ImageComponent3D(int, java.awt.image.RenderedImage[], boolean, boolean)"><!-- --></A><H3>ImageComponent3D</H3><PRE>public <B>ImageComponent3D</B>(int&nbsp;format,                        java.awt.image.RenderedImage[]&nbsp;images,                        boolean&nbsp;byReference,                        boolean&nbsp;yUp)</PRE><DL><DD>Constructs a 3D image component object using the specified format, RenderedImage array, byReference flag, and yUp flag. Default values are used for all other parameters.<P><DT><B>Parameters:</B><DD><CODE>format</CODE> - the image component format, one of: FORMAT_RGB, FORMAT_RGBA etc.<DD><CODE>byReference</CODE> - a flag that indicates whether the data is copied into this image component object or is accessed by reference.<DD><CODE>yUp</CODE> - a flag that indicates the y-orientation of this image component.  If yUp is set to true, the origin of the image is the lower left; otherwise, the origin of the image is the upper left.<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if format is invalid, or if the width or height of the first image are not positive.<DT><B>Since:</B><DD>Java 3D 1.2</DD></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="getDepth()"><!-- --></A><H3>getDepth</H3><PRE>public int <B>getDepth</B>()</PRE><DL><DD>Retrieves the depth of this 3D image component object.<P><DD><DL><DT><B>Returns:</B><DD>the format of this 3D image component object<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="set(java.awt.image.BufferedImage[])"><!-- --></A><H3>set</H3><PRE>public void <B>set</B>(java.awt.image.BufferedImage[]&nbsp;images)</PRE><DL><DD>Sets the array of images in this image component to the specified array of BufferedImage objects.  If the data access mode is not by-reference, then the BufferedImage data is copied into this object.  If the data access mode is by-reference, then a shallow copy of the array of references to the BufferedImage objects is made, but the BufferedImage data is not necessarily copied.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>images</CODE> - array of BufferedImage objects containing the image. The format and size must be the same as the current format in the image component.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph</DL></DD></DL><HR><A NAME="set(java.awt.image.RenderedImage[])"><!-- --></A><H3>set</H3><PRE>public void <B>set</B>(java.awt.image.RenderedImage[]&nbsp;images)</PRE><DL><DD>Sets the array of images in this image component to the specified array of RenderedImage objects.  If the data access mode is not by-reference, then the RenderedImage data is copied into this object.  If the data access mode is by-reference, then a shallow copy of the array of references to the RenderedImage objects is made, but the RenderedImage data is not necessarily copied.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>images</CODE> - array of RenderedImage objects containing the image. The format and size must be the same as the current format in the image component.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DT><B>Since:</B><DD>Java 3D 1.2</DD></DD></DL></DD></DL>

⌨️ 快捷键说明

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