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

📄 textureloader.html

📁 JAVA多媒体开发类库说明
💻 HTML
📖 第 1 页 / 共 3 页
字号:
              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" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></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" title="class in javax.media.j3d">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" title="class in javax.media.j3d">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" title="class in javax.media.j3d">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" title="class in javax.media.j3d">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" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></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" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></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></DT>  <DD>Java 3D 1.2</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 origin of the image is the lower left<P><DL><DT><B>Since:</B></DT>  <DD>Java 3D 1.2</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><HR><A NAME="ALLOW_NON_POWER_OF_TWO"><!-- --></A><H3>ALLOW_NON_POWER_OF_TWO</H3><PRE>public static final int <B>ALLOW_NON_POWER_OF_TWO</B></PRE><DL><DD>Optional flag - specifies that the ImageComponent2D is allowed to have dimensions that are not a power of two. If this flag is set, TextureLoader will not perform any scaling of images. If this flag is not set, images will be scaled to the nearest power of two. This is the default mode. <p> Note that non-power-of-two textures may not be supported by all graphics cards. Applications should check whether a particular Canvas3D supports non-power-of-two textures by calling the <A HREF="../../../../../javax/media/j3d/Canvas3D.html#queryProperties()"><CODE>Canvas3D.queryProperties()</CODE></A> method, and checking whether the <code>textureNonPowerOfTwoAvailable</code> property is set to true.<P><DL><DT><B>Since:</B></DT>  <DD>Java 3D 1.5</DD><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.sun.j3d.utils.image.TextureLoader.ALLOW_NON_POWER_OF_TWO">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></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><DL><DT><B>Parameters:</B><DD><CODE>bImage</CODE> - The BufferedImage used for loading the texture</DL></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><DL><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></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><DL><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></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><DL><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></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><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The Image used for loading the texture<DD><CODE>observer</CODE> - The associated image observer</DL></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><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>observer</CODE> - The associated image observer</DL></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><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - The Image used for loading the texture<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>

⌨️ 快捷键说明

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