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

📄 qdcolor.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
public <B>QDColor</B>(float&nbsp;red,               float&nbsp;green,               float&nbsp;blue,               float&nbsp;alpha,               float&nbsp;endingPercentage)</PRE><DL><DD>Create an instance of an QDColor class.<DD><DL><DT><B>Parameters:</B><DD><CODE>red</CODE> - the 0 to 1F red value<DD><CODE>green</CODE> - the 0 to 1F green value<DD><CODE>blue</CODE> - the 0 to 1F blue value<DD><CODE>alpha</CODE> - the 0 to 1F alpha value<DD><CODE>endingPercentage</CODE> - Specifies the percentage of the gradient (expressed as value between 0 and 1 , where 0 is the beginning of the gradient) at which the specified color begins.</DL></DD></DL><HR><A NAME="QDColor(java.awt.Color)"><!-- --></A><H3>QDColor</H3><PRE>public <B>QDColor</B>(java.awt.Color&nbsp;color)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>as of QTJava 4.0</I><P><DD>Create an instance of an QDColor class<DD><DL><DT><B>Parameters:</B><DD><CODE>color</CODE> - the java.awt.Color class to convert</DL></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="getEndianDescriptorRGBColor()"><!-- --></A><H3>getEndianDescriptorRGBColor</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorRGBColor</B>()</PRE><DL><DD>Returns the EndianDescriptor for RGBColor color.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="getEndianDescriptorARGBColor()"><!-- --></A><H3>getEndianDescriptorARGBColor</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorARGBColor</B>()</PRE><DL><DD>Returns the EndianDescriptor for ARGBColor color.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="getEndianDescriptorGradientColor()"><!-- --></A><H3>getEndianDescriptorGradientColor</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorGradientColor</B>()</PRE><DL><DD>Returns the EndianDescriptor for ARGBColor color.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="getEndianDescriptorTQ3Color()"><!-- --></A><H3>getEndianDescriptorTQ3Color</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorTQ3Color</B>()</PRE><DL><DD>Returns the EndianDescriptor for TQ3Color color.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="getEndianDescriptorTQ3ColorARGB()"><!-- --></A><H3>getEndianDescriptorTQ3ColorARGB</H3><PRE>public static final <A HREF="../../quicktime/util/EndianDescriptor.html">EndianDescriptor</A> <B>getEndianDescriptorTQ3ColorARGB</B>()</PRE><DL><DD>Returns the EndianDescriptor for TQ3ColorARGB color.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndianDescriptor</DL></DD></DL><HR><A NAME="convert8to16(int)"><!-- --></A><H3>convert8to16</H3><PRE>public static int <B>convert8to16</B>(int&nbsp;value)</PRE><DL><DD>Takes an 8bit color value and converts it into a 16bit value.<DD><DL></DL></DD></DL><HR><A NAME="convert16to8(int)"><!-- --></A><H3>convert16to8</H3><PRE>public static int <B>convert16to8</B>(int&nbsp;value)</PRE><DL><DD>Takes a 16bit color value and converts it into an 8bit value.<DD><DL></DL></DD></DL><HR><A NAME="fromArray(byte[], int)"><!-- --></A><H3>fromArray</H3><PRE>public static <A HREF="../../quicktime/qd/QDColor.html">QDColor</A> <B>fromArray</B>(byte[]&nbsp;colorBytes,                                int&nbsp;flag)</PRE><DL><DD>Takes a byte array and converts it to a QDColor. The flag tells the call what format the bytes are in. The length of the array must equate to at least the required length of bytes. <UL>	<LI>kIsRGBColorBytes, length == 6, r, g, b of 2 bytes each (unsigned short)(range 0->65535 for each component)	<LI>kIsARGBColorBytes, length == 8, a, r, g, b of 2 bytes each (unsigned short)(range 0->65535 for each component)	<LI>kIsTQ3ColorRGBBytes, length == 12, r, g, b of 4 bytes each (float)(range 0->1 for each component)	<LI>kIsTQ3ColorARGBBytes, length == 16, a, r, g, b of 4 bytes each (float)(range 0->1 for each component) </UL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>colorBytes</CODE> - the byte array containing the color values<DD><CODE>flag</CODE> - flag that describes the format of the byte array<DT><B>Returns:</B><DD>a QDColor<DT><B>Throws:</B><DD><CODE>java.lang.IllegalArgumentException</CODE> - if mismatch between minimum length of byte array and format flag</DL></DD></DL><HR><A NAME="fromARGBColor(int)"><!-- --></A><H3>fromARGBColor</H3><PRE>public static <A HREF="../../quicktime/qd/QDColor.html">QDColor</A> <B>fromARGBColor</B>(int&nbsp;argb)</PRE><DL><DD>Creates a QDColor with the specified ARGB value, where the alpha  component is in bits 24-32 of the argument, where the red  component is in bits 16-23 of the argument, the green  component is in bits 8-15 of the argument, and the blue  component is in bits 0-7. The value zero indicates no  contribution from the primary color component.<DD><DL></DL></DD></DL><HR><A NAME="getRGBColor()"><!-- --></A><H3>getRGBColor</H3><PRE>public byte[] <B>getRGBColor</B>()</PRE><DL><DD>Returns the color as an RGBColor value<DD><DL></DL></DD></DL><HR><A NAME="getARGBColor()"><!-- --></A><H3>getARGBColor</H3><PRE>public byte[] <B>getARGBColor</B>()</PRE><DL><DD>Returns the color as an ARGBColor value<DD><DL></DL></DD></DL><HR><A NAME="getGradientColor()"><!-- --></A><H3>getGradientColor</H3><PRE>public byte[] <B>getGradientColor</B>()</PRE><DL><DD>Returns the color as an GradientColor value<DD><DL></DL></DD></DL><HR><A NAME="getTQ3ColorRGB()"><!-- --></A><H3>getTQ3ColorRGB</H3><PRE>public byte[] <B>getTQ3ColorRGB</B>()</PRE><DL><DD>Returns the color as a TQ3ColorRGB value<DD><DL></DL></DD></DL><HR><A NAME="getTQ3ColorARGB()"><!-- --></A><H3>getTQ3ColorARGB</H3><PRE>public byte[] <B>getTQ3ColorARGB</B>()</PRE><DL><DD>Returns the color as a TQ3ColorARGB value<DD><DL></DL></DD></DL><HR><A NAME="getRed()"><!-- --></A><H3>getRed</H3><PRE>public int <B>getRed</B>()</PRE><DL><DD>Return value of red component<DD><DL></DL></DD></DL><HR><A NAME="getRedF()"><!-- --></A><H3>getRedF</H3><PRE>public float <B>getRedF</B>()</PRE><DL><DD>Return value of red component as float<DD><DL></DL></DD></DL><HR><A NAME="getGreen()"><!-- --></A><H3>getGreen</H3><PRE>public int <B>getGreen</B>()</PRE><DL><DD>Return value of green component<DD><DL></DL></DD></DL><HR><A NAME="getGreenF()"><!-- --></A><H3>getGreenF</H3><PRE>public float <B>getGreenF</B>()</PRE><DL><DD>Return value of green component as float<DD><DL></DL></DD></DL><HR><A NAME="getBlue()"><!-- --></A><H3>getBlue</H3><PRE>public int <B>getBlue</B>()</PRE><DL><DD>Return value of blue component<DD><DL></DL></DD></DL><HR><A NAME="getBlueF()"><!-- --></A><H3>getBlueF</H3><PRE>public float <B>getBlueF</B>()</PRE><DL><DD>Return value of blue component as float<DD><DL></DL></DD></DL><HR><A NAME="getAlpha()"><!-- --></A><H3>getAlpha</H3><PRE>public int <B>getAlpha</B>()</PRE><DL><DD>Return value of alpha component<DD><DL></DL></DD></DL><HR><A NAME="getAlphaF()"><!-- --></A><H3>getAlphaF</H3><PRE>public float <B>getAlphaF</B>()</PRE><DL><DD>Return value of alpha component as float<DD><DL></DL></DD></DL><HR><A NAME="getEndingPercentage()"><!-- --></A><H3>getEndingPercentage</H3><PRE>public float <B>getEndingPercentage</B>()</PRE><DL><DD>Return value of ending percentage component<DD><DL></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Returns a copy of this object<DD><DL></DL></DD></DL><HR><A NAME="getARGB()"><!-- --></A><H3>getARGB</H3><PRE>public int <B>getARGB</B>()</PRE><DL><DD>Converts to a packed int according to the pixel depth supplied.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>packed int of 8bit depth for each a, r, g, b component</DL></DD></DL><HR><A NAME="getRGB()"><!-- --></A><H3>getRGB</H3><PRE>public int <B>getRGB</B>()</PRE><DL><DD>Converts to a packed int according to the pixel depth supplied. Alpha channel is 0 (the high 8 bits).<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>packed int of 8bit depth for each r, g, b component</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns the String representation of this object<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../quicktime/util/QTByteObject.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../quicktime/util/QTByteObject.html">QTByteObject</A></CODE></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/QDColor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../quicktime/qd/Polygon.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../quicktime/qd/QDDimension.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="QDColor.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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