📄 textureloader.html
字号:
</DL><HR><A NAME="TextureLoader(java.awt.Image, java.lang.String, int, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.awt.Image image, java.lang.String format, int flags, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified Image format and option flags<P><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The Image used for loading the texture<DD><CODE>format</CODE> - The format specifies which channels to use<DD><CODE>flags</CODE> - The flags specify what options to use in texture loading (generate mipmap etc)<DD><CODE>observer</CODE> - The associated image observer</DL></DL><HR><A NAME="TextureLoader(java.lang.String, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.lang.String fname, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified file and default format RGBA<P><DL><DT><B>Parameters:</B><DD><CODE>fname</CODE> - The file that specifies an Image to load the texture with<DD><CODE>observer</CODE> - The associated image observer</DL></DL><HR><A NAME="TextureLoader(java.lang.String, java.lang.String, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.lang.String fname, java.lang.String format, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified file, and format<P><DL><DT><B>Parameters:</B><DD><CODE>fname</CODE> - The file that specifies an Image to load the texture with<DD><CODE>format</CODE> - The format specifies which channels to use<DD><CODE>observer</CODE> - The associated image observer</DL></DL><HR><A NAME="TextureLoader(java.lang.String, int, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.lang.String fname, int flags, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified file, option flags and default format RGBA<P><DL><DT><B>Parameters:</B><DD><CODE>fname</CODE> - The file that specifies an Image to load the texture with<DD><CODE>flags</CODE> - The flags specify what options to use in texture loading (generate mipmap etc)<DD><CODE>observer</CODE> - The associated image observer</DL></DL><HR><A NAME="TextureLoader(java.lang.String, java.lang.String, int, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.lang.String fname, java.lang.String format, int flags, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified file, format and option flags<P><DL><DT><B>Parameters:</B><DD><CODE>fname</CODE> - The file that specifies an Image to load the texture with<DD><CODE>format</CODE> - The format specifies which channels to use<DD><CODE>flags</CODE> - The flags specify what options to use in texture loading (generate mipmap etc)<DD><CODE>observer</CODE> - The associated image observer<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/utils/image/ImageException.html" title="class in com.sun.j3d.utils.image">ImageException</A></CODE> - if there is a problem reading the image</DL></DL><HR><A NAME="TextureLoader(java.net.URL, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.net.URL url, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified URL and default format RGBA<P><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - The URL that specifies an Image to load the texture with<DD><CODE>observer</CODE> - The associated image observer</DL></DL><HR><A NAME="TextureLoader(java.net.URL, java.lang.String, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.net.URL url, java.lang.String format, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified URL, and format<P><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - The URL that specifies an Image to load the texture with<DD><CODE>format</CODE> - The format specifies which channels to use<DD><CODE>observer</CODE> - The associated image observer</DL></DL><HR><A NAME="TextureLoader(java.net.URL, int, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.net.URL url, int flags, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified URL, option flags and default format RGBA<P><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - The URL that specifies an Image to load the texture with<DD><CODE>flags</CODE> - The flags specify what options to use in texture loading (generate mipmap etc)<DD><CODE>observer</CODE> - The associated image observer</DL></DL><HR><A NAME="TextureLoader(java.net.URL, java.lang.String, int, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.net.URL url, java.lang.String format, int flags, java.awt.Component observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified URL, format and option flags<P><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - The url that specifies an Image to load the texture with<DD><CODE>format</CODE> - The format specifies which channels to use<DD><CODE>flags</CODE> - The flags specify what options to use in texture loading (generate mipmap etc)<DD><CODE>observer</CODE> - The associated image observer<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../com/sun/j3d/utils/image/ImageException.html" title="class in com.sun.j3d.utils.image">ImageException</A></CODE> - if there is a problem reading the image</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getImage()"><!-- --></A><H3>getImage</H3><PRE>public <A HREF="../../../../../javax/media/j3d/ImageComponent2D.html" title="class in javax.media.j3d">ImageComponent2D</A> <B>getImage</B>()</PRE><DL><DD>Returns the associated ImageComponent2D object<P><DD><DL><DT><B>Returns:</B><DD>The associated ImageComponent2D object</DL></DD></DL><HR><A NAME="getScaledImage(float, float)"><!-- --></A><H3>getScaledImage</H3><PRE>public <A HREF="../../../../../javax/media/j3d/ImageComponent2D.html" title="class in javax.media.j3d">ImageComponent2D</A> <B>getScaledImage</B>(float xScale, float yScale)</PRE><DL><DD>Returns the scaled ImageComponent2D object<P><DD><DL><DT><B>Parameters:</B><DD><CODE>xScale</CODE> - The X scaling factor<DD><CODE>yScale</CODE> - The Y scaling factor<DT><B>Returns:</B><DD>The scaled ImageComponent2D object</DL></DD></DL><HR><A NAME="getScaledImage(int, int)"><!-- --></A><H3>getScaledImage</H3><PRE>public <A HREF="../../../../../javax/media/j3d/ImageComponent2D.html" title="class in javax.media.j3d">ImageComponent2D</A> <B>getScaledImage</B>(int width, int height)</PRE><DL><DD>Returns the scaled ImageComponent2D object<P><DD><DL><DT><B>Parameters:</B><DD><CODE>width</CODE> - The desired width<DD><CODE>height</CODE> - The desired height<DT><B>Returns:</B><DD>The scaled ImageComponent2D object</DL></DD></DL><HR><A NAME="getTexture()"><!-- --></A><H3>getTexture</H3><PRE>public <A HREF="../../../../../javax/media/j3d/Texture.html" title="class in javax.media.j3d">Texture</A> <B>getTexture</B>()</PRE><DL><DD>Returns the associated Texture object or null if the image failed to load<P><DD><DL><DT><B>Returns:</B><DD>The associated Texture object</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="../../../../../com/sun/j3d/utils/image/ImageException.html" title="class in com.sun.j3d.utils.image"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?com/sun/j3d/utils/image/TextureLoader.html" target="_top"><B>FRAMES</B></A> <A HREF="TextureLoader.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: NESTED | <A HREF="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <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 + -