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

📄 textureloader.html

📁 这是一个JAVA的代码
💻 HTML
📖 第 1 页 / 共 3 页
字号:
              java.lang.String&nbsp;format,              int&nbsp;flags,              java.awt.Component&nbsp;observer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contructs a TextureLoader object using the specified file,  format and option flags</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/image/TextureLoader.html#TextureLoader(java.net.URL, java.awt.Component)">TextureLoader</A></B>(java.net.URL&nbsp;url,              java.awt.Component&nbsp;observer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contructs a TextureLoader object using the specified URL  and default format RGBA</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/image/TextureLoader.html#TextureLoader(java.net.URL, int, java.awt.Component)">TextureLoader</A></B>(java.net.URL&nbsp;url,              int&nbsp;flags,              java.awt.Component&nbsp;observer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contructs a TextureLoader object using the specified URL,  option flags and default format RGBA</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/image/TextureLoader.html#TextureLoader(java.net.URL, java.lang.String, java.awt.Component)">TextureLoader</A></B>(java.net.URL&nbsp;url,              java.lang.String&nbsp;format,              java.awt.Component&nbsp;observer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contructs a TextureLoader object using the specified URL, and format</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/image/TextureLoader.html#TextureLoader(java.net.URL, java.lang.String, int, java.awt.Component)">TextureLoader</A></B>(java.net.URL&nbsp;url,              java.lang.String&nbsp;format,              int&nbsp;flags,              java.awt.Component&nbsp;observer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contructs a TextureLoader object using the specified URL,  format and option flags</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../javax/media/j3d/ImageComponent2D.html">ImageComponent2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/image/TextureLoader.html#getImage()">getImage</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the associated ImageComponent2D object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../javax/media/j3d/ImageComponent2D.html">ImageComponent2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/image/TextureLoader.html#getScaledImage(float, float)">getScaledImage</A></B>(float&nbsp;xScale,               float&nbsp;yScale)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the scaled ImageComponent2D object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../javax/media/j3d/ImageComponent2D.html">ImageComponent2D</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/image/TextureLoader.html#getScaledImage(int, int)">getScaledImage</A></B>(int&nbsp;width,               int&nbsp;height)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the scaled ImageComponent2D object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../javax/media/j3d/Texture.html">Texture</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/j3d/utils/image/TextureLoader.html#getTexture()">getTexture</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the associated Texture object or null if the image failed to load</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 =========== --><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="GENERATE_MIPMAP"><!-- --></A><H3>GENERATE_MIPMAP</H3><PRE>public static final int <B>GENERATE_MIPMAP</B></PRE><DL><DD>Optional flag - specifies that mipmaps are generated for all levels<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.image.TextureLoader.GENERATE_MIPMAP">Constant Field Values</A></DL></DL><HR><A NAME="BY_REFERENCE"><!-- --></A><H3>BY_REFERENCE</H3><PRE>public static final int <B>BY_REFERENCE</B></PRE><DL><DD>Optional flag - specifies that the ImageComponent2D will access the image data by reference<P><DL><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.image.TextureLoader.BY_REFERENCE">Constant Field Values</A></DL></DL><HR><A NAME="Y_UP"><!-- --></A><H3>Y_UP</H3><PRE>public static final int <B>Y_UP</B></PRE><DL><DD>Optional flag - specifies that the ImageComponent2D will have a y-orientation of y up, meaning the orgin of the image is the lower left<P><DL><DT><B>Since:</B><DD>Java 3D 1.2</DD></DD><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.image.TextureLoader.Y_UP">Constant Field Values</A></DL></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="TextureLoader(java.awt.image.BufferedImage)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.awt.image.BufferedImage&nbsp;bImage)</PRE><DL><DD>Contructs a TextureLoader object using the specified BufferedImage  and default format RGBA<P><DT><B>Parameters:</B><DD><CODE>bImage</CODE> - The BufferedImage used for loading the texture</DL><HR><A NAME="TextureLoader(java.awt.image.BufferedImage, java.lang.String)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.awt.image.BufferedImage&nbsp;bImage,                     java.lang.String&nbsp;format)</PRE><DL><DD>Contructs a TextureLoader object using the specified BufferedImage  and format<P><DT><B>Parameters:</B><DD><CODE>bImage</CODE> - The BufferedImage used for loading the texture<DD><CODE>format</CODE> - The format specifies which channels to use</DL><HR><A NAME="TextureLoader(java.awt.image.BufferedImage, int)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.awt.image.BufferedImage&nbsp;bImage,                     int&nbsp;flags)</PRE><DL><DD>Contructs a TextureLoader object using the specified BufferedImage, option flags and default format RGBA<P><DT><B>Parameters:</B><DD><CODE>bImage</CODE> - The BufferedImage used for loading the texture<DD><CODE>flags</CODE> - The flags specify what options to use in texture loading (generate mipmap etc)</DL><HR><A NAME="TextureLoader(java.awt.image.BufferedImage, java.lang.String, int)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.awt.image.BufferedImage&nbsp;bImage,                     java.lang.String&nbsp;format,                     int&nbsp;flags)</PRE><DL><DD>Contructs a TextureLoader object using the specified BufferedImage, format and option flags<P><DT><B>Parameters:</B><DD><CODE>bImage</CODE> - The BufferedImage 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)</DL><HR><A NAME="TextureLoader(java.awt.Image, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.awt.Image&nbsp;image,                     java.awt.Component&nbsp;observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified Image  and default format RGBA<P><DT><B>Parameters:</B><DD><CODE>image</CODE> - The Image used for loading the texture<DD><CODE>observer</CODE> - The associated image observer</DL><HR><A NAME="TextureLoader(java.awt.Image, java.lang.String, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.awt.Image&nbsp;image,                     java.lang.String&nbsp;format,                     java.awt.Component&nbsp;observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified Image  and format<P><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>observer</CODE> - The associated image observer</DL><HR><A NAME="TextureLoader(java.awt.Image, int, java.awt.Component)"><!-- --></A><H3>TextureLoader</H3><PRE>public <B>TextureLoader</B>(java.awt.Image&nbsp;image,                     int&nbsp;flags,                     java.awt.Component&nbsp;observer)</PRE><DL><DD>Contructs a TextureLoader object using the specified Image  flags and default format RGBA<P>

⌨️ 快捷键说明

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