📄 imagecomponent3d.html
字号:
ImageClass.BUFFERED_IMAGE.</DL></DD></DL><HR><A NAME="getRenderedImage(int)"><!-- --></A><H3>getRenderedImage</H3><PRE>public java.awt.image.RenderedImage <B>getRenderedImage</B>(int index)</PRE><DL><DD>Retrieves one of the images from this ImageComponent3D object. If the data access mode is not by-reference, then a copy of the image is made. If the data access mode is by-reference, then the reference is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the image to retrieve. The index must be less than the depth of this ImageComponent3D object.<DT><B>Returns:</B><DD>either a new RenderedImage object created from the data in this image component, or the RenderedImage object referenced by this image component.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalStateException</CODE> - if the image class is not one of: ImageClass.BUFFERED_IMAGE or ImageClass.RENDERED_IMAGE.<DT><B>Since:</B></DT> <DD>Java 3D 1.2</DD></DL></DD></DL><HR><A NAME="getNioImage(int)"><!-- --></A><H3>getNioImage</H3><PRE>public <A HREF="../../../javax/media/j3d/NioImageBuffer.html" title="class in javax.media.j3d">NioImageBuffer</A> <B>getNioImage</B>(int index)</PRE><DL><DD>Retrieves one of the images from this ImageComponent3D object. If the data access mode is not by-reference, then a copy of the image is made. If the data access mode is by-reference, then the reference is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the image to retrieve. The index must be less than the depth of this ImageComponent3D object.<DT><B>Returns:</B><DD>either a new NioImageBuffer object created from the data in this image component, or the NioImageBuffer object referenced by this image component.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalStateException</CODE> - if the image class is not ImageClass.NIO_IMAGE_BUFFER.<DD><CODE>java.lang.UnsupportedOperationException</CODE> - this method is not supported for Java 3D 1.5.<DT><B>Since:</B></DT> <DD>Java 3D 1.5</DD></DL></DD></DL><HR><A NAME="setSubImage(int, java.awt.image.RenderedImage, int, int, int, int, int, int)"><!-- --></A><H3>setSubImage</H3><PRE>public void <B>setSubImage</B>(int index, java.awt.image.RenderedImage image, int width, int height, int srcX, int srcY, int dstX, int dstY)</PRE><DL><DD>Modifies a contiguous subregion of a particular slice of image of this ImageComponent3D object. Block of data of dimension (width * height) starting at the offset (srcX, srcY) of the specified RenderedImage object will be copied into the particular slice of image component starting at the offset (dstX, dstY) of this ImageComponent3D object. The specified RenderedImage object must be of the same format as the current format of this object. This method can only be used if the data access mode is by-copy. If it is by-reference, see updateData().<P><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the image to be modified. The index must be less than the depth of this ImageComponent3D object.<DD><CODE>image</CODE> - RenderedImage object containing the subimage.<DD><CODE>width</CODE> - width of the subregion.<DD><CODE>height</CODE> - height of the subregion.<DD><CODE>srcX</CODE> - starting X offset of the subregion in the specified image.<DD><CODE>srcY</CODE> - starting Y offset of the subregion in the specified image.<DD><CODE>dstX</CODE> - startin X offset of the subregion in the image component of this object.<DD><CODE>dstY</CODE> - starting Y offset of the subregion in the image component of this object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalStateException</CODE> - if the data access mode is <code>BY_REFERENCE</code>.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>width</code> or <code>height</code> of the subregion exceeds the dimension of the image in this object.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>dstX</code> < 0, or (<code>dstX</code> + <code>width</code>) > width of this object, or <code>dstY</code> < 0, or (<code>dstY</code> + <code>height</code>) > height of this object.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>srcX</code> < 0, or (<code>srcX</code> + <code>width</code>) > width of the RenderedImage object containing the subimage, or <code>srcY</code> < 0, or (<code>srcY</code> + <code>height</code>) > height of the RenderedImage object containing the subimage.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the specified RenderedImage is not compatible with the existing RenderedImage.<DD><CODE>java.lang.IllegalStateException</CODE> - if the image class is not one of: ImageClass.BUFFERED_IMAGE or ImageClass.RENDERED_IMAGE.<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="updateData(javax.media.j3d.ImageComponent3D.Updater, int, int, int, int, int)"><!-- --></A><H3>updateData</H3><PRE>public void <B>updateData</B>(<A HREF="../../../javax/media/j3d/ImageComponent3D.Updater.html" title="interface in javax.media.j3d">ImageComponent3D.Updater</A> updater, int index, int x, int y, int width, int height)</PRE><DL><DD>Updates a particular slice of image data that is accessed by reference. This method calls the updateData method of the specified ImageComponent3D.Updater object to synchronize updates to the image data that is referenced by this ImageComponent3D object. Applications that wish to modify such data must perform all updates via this method. <p> The data to be modified has to be within the boundary of the subregion specified by the offset (x, y) and the dimension (width*height). It is illegal to modify data outside this boundary. If any referenced data is modified outside the updateData method, or any data outside the specified boundary is modified, the results are undefined. <p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>updater</CODE> - object whose updateData callback method will be called to update the data referenced by this ImageComponent3D object.<DD><CODE>index</CODE> - index of the image to be modified. The index must be less than the depth of this ImageComponent3D object.<DD><CODE>x</CODE> - starting X offset of the subregion.<DD><CODE>y</CODE> - starting Y offset of the subregion.<DD><CODE>width</CODE> - width of the subregion.<DD><CODE>height</CODE> - height of the subregion.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/media/j3d/CapabilityNotSetException.html" title="class in javax.media.j3d">CapabilityNotSetException</A></CODE> - if appropriate capability is not set and this object is part of live or compiled scene graph<DD><CODE>java.lang.IllegalStateException</CODE> - if the data access mode is <code>BY_COPY</code>.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>width</code> or <code>height</code> of the subregion exceeds the dimension of the image in this object.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>x</code> < 0, or (<code>x</code> + <code>width</code>) > width of this object, or <code>y</code> < 0, or (<code>y</code> + <code>height</code>) > height of this object.<DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - if <code>index</code> > the depth of this object.<DT><B>Since:</B></DT> <DD>Java 3D 1.3</DD></DL></DD></DL><HR><A NAME="cloneNodeComponent()"><!-- --></A><H3>cloneNodeComponent</H3><PRE>public <A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A> <B>cloneNodeComponent</B>()</PRE><DL><DD><B>Deprecated.</B> <I>replaced with cloneNodeComponent(boolean forceDuplicate)</I><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/media/j3d/NodeComponent.html#cloneNodeComponent()">cloneNodeComponent</A></CODE> in class <CODE><A HREF="../../../javax/media/j3d/NodeComponent.html" title="class in javax.media.j3d">NodeComponent</A></CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/media/j3d/ImageComponent2D.Updater.html" title="interface in javax.media.j3d"><B>PREV CLASS</B></A> <A HREF="../../../javax/media/j3d/ImageComponent3D.Updater.html" title="interface in javax.media.j3d"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/media/j3d/ImageComponent3D.html" target="_top"><B>FRAMES</B></A> <A HREF="ImageComponent3D.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_javax.media.j3d.ImageComponent">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1">Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../LICENSE-SPEC.html">license terms</a>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -