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

📄 pict.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
                                              <A HREF="../../quicktime/qd/Pict.html">Pict</A>&nbsp;src)                                       throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Compresses a Pict returning a new Pict.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imImageCompDialog.18.htm#imImag24">QuickTime::SCCompressPicture()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - the source Pict.<DT><B>Returns:</B><DD>a Pict<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/qtcomponents/ImageCompressionDialog.html#compressPicture(quicktime.qd.Pict)"><CODE>ImageCompressionDialog.compressPicture(quicktime.qd.Pict)</CODE></A></DL></DD></DL><HR><A NAME="fromFile(java.io.File)"><!-- --></A><H3>fromFile</H3><PRE>public static <A HREF="../../quicktime/qd/Pict.html">Pict</A> <B>fromFile</B>(java.io.File&nbsp;file)                     throws <A HREF="../../quicktime/QTException.html">QTException</A>,                            java.io.IOException</PRE><DL><DD>Opens a PICT that is stored in the file. This method does no checking to ensure that the file is valid PICT file.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the PICT file<DT><B>Returns:</B><DD>a Pict</DL></DD></DL><HR><A NAME="open(quicktime.qd.QDGraphics, quicktime.qd.OpenCPicParams)"><!-- --></A><H3>open</H3><PRE>public static <A HREF="../../quicktime/qd/Pict.html">Pict</A> <B>open</B>(<A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;port,                        <A HREF="../../quicktime/qd/OpenCPicParams.html">OpenCPicParams</A>&nbsp;params)                 throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Use OpenCPicture to begin defining a picture, collecting all of your subsequent  drawing commands in this record. The returned Pict must be closed before any other methods can be applied to it.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imPictures.10.htm#pgfId=1016">QuickDraw::OpenCPicture</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>port</CODE> - the port which the open picture will record operations from<DD><CODE>params</CODE> - the parameters for the new Pict<DT><B>Returns:</B><DD>a Pict</DL></DD></DL><HR><A NAME="getPictFrame()"><!-- --></A><H3>getPictFrame</H3><PRE>public <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> <B>getPictFrame</B>()</PRE><DL><DD>Returns the picture frame rectangle referenced of the Pict.<DD><DL></DL></DD></DL><HR><A NAME="isOpen()"><!-- --></A><H3>isOpen</H3><PRE>public boolean <B>isOpen</B>()</PRE><DL><DD>Returns true if the pict is open for recording drawing operations.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a boolean indicating open status</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()           throws <A HREF="../../quicktime/qd/QDException.html">QDException</A></PRE><DL><DD>Completes the collection of drawing commands and picture comments that define your picture.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imPictures.10.htm#pgfId=1367">QuickDraw::ClosePicture()</a> </b><BR><BR></DL></DD></DL><HR><A NAME="compress(int, int)"><!-- --></A><H3>compress</H3><PRE>public <A HREF="../../quicktime/qd/Pict.html">Pict</A> <B>compress</B>(int&nbsp;quality,                     int&nbsp;cType)              throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This allows your application to compress a single-frame image stored as a picture. Returns the result in a new picture.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.21.htm#iqImag78">QuickTime::CompressPicture()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>quality</CODE> - Specifies the desired compressed image quality<DD><CODE>cType</CODE> - Specifies the compressor type<DT><B>Returns:</B><DD>dstPicture The destination compressed image</DL></DD></DL><HR><A NAME="fCompress(int, int, int, int, int, int)"><!-- --></A><H3>fCompress</H3><PRE>public <A HREF="../../quicktime/qd/Pict.html">Pict</A> <B>fCompress</B>(int&nbsp;colorDepth,                      int&nbsp;quality,                      int&nbsp;doDither,                      int&nbsp;compressAgain,                      int&nbsp;cType,                      int&nbsp;codec)               throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This allows your application to compress a single-frame image with more variance that stored as a picture. Returns the result in a new picture.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.21.htm#iqImag83">QuickTime::FCompressPicture()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>colorDepth</CODE> - Specifies the depth at which the image is to be compressed// * @param clut Specifies the custom color lookup table. Uses source color table only.<DD><CODE>quality</CODE> - Specifies the desired compressed image quality<DD><CODE>doDither</CODE> - Specifies whether to dither or not<DD><CODE>compressAgain</CODE> - Indicates whether to recompress compressed image data in the picture<DD><CODE>cType</CODE> - Specifies the compressor type<DD><CODE>codec</CODE> - Specifies the compression indentifier<DT><B>Returns:</B><DD>dstPicture The destination compressed image</DL></DD></DL><HR><A NAME="draw(quicktime.qd.QDGraphics, quicktime.qd.QDRect)"><!-- --></A><H3>draw</H3><PRE>public void <B>draw</B>(<A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;cg,                 <A HREF="../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;frameRect)          throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>To draw a picture on any type of output device.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/MACWIN/imPictures.11.htm#pgfId=1377">QuickTime::DrawPicture()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cg</CODE> - Specified graph port on which it will be drawn. This may NOT be null.<DD><CODE>frameRect</CODE> - Specified rectangle with the coordinates in which to draw the picture.</DL></DD></DL><HR><A NAME="drawTrimmed(quicktime.qd.QDGraphics, quicktime.qd.QDRect, quicktime.qd.Region, int)"><!-- --></A><H3>drawTrimmed</H3><PRE>public void <B>drawTrimmed</B>(<A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A>&nbsp;cg,                        <A HREF="../../quicktime/qd/QDRect.html">QDRect</A>&nbsp;frameRect,                        <A HREF="../../quicktime/qd/Region.html">Region</A>&nbsp;trimMask,                        int&nbsp;doDither)                 throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Allows the drawing of an image that is stored as a picture. Also, trims that image to fit the region you specify.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.21.htm#iqImag99">QuickTime::DrawTrimmedPicture()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cg</CODE> - Specified graph port on which it will be drawn. This may NOT be null.<DD><CODE>frameRect</CODE> - Specifies the rectangle into which the decompressed image is to be loaded<DD><CODE>trimMask</CODE> - Specifies the destination clipping region<DD><CODE>doDither</CODE> - Specifies whether to dither or not</DL></DD></DL><HR><A NAME="makeThumbnail(int)"><!-- --></A><H3>makeThumbnail</H3><PRE>public <A HREF="../../quicktime/qd/Pict.html">Pict</A> <B>makeThumbnail</B>(int&nbsp;colorDepth)                   throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This allows your application to create an 80-by-80 pixel thumbnail picture from a specified picture.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.22.htm#iqImag110">QuickTime::MakeThumbnailFromPicture()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>colorDepth</CODE> - Specifies the desired depth at which the image is likely to be viewed<DT><B>Returns:</B><DD>The desired thumbnail picture</DL></DD></DL><HR><A NAME="toEncodedImage()"><!-- --></A><H3>toEncodedImage</H3><PRE>public <A HREF="../../quicktime/util/RawEncodedImage.html">RawEncodedImage</A> <B>toEncodedImage</B>()                               throws <A HREF="../../quicktime/qd/QDException.html">QDException</A></PRE><DL><DD>Returns a version of the Pict as an EncodedImage object. This references the same data as is held within the Pict, which is locked and must be kept locked for the duration of the lifetime of the EncodedImage.<DD><DL></DL></DD></DL><HR><A NAME="writeToFile(java.io.File)"><!-- --></A><H3>writeToFile</H3><PRE>public void <B>writeToFile</B>(java.io.File&nbsp;file)                 throws <A HREF="../../quicktime/qd/QDException.html">QDException</A>,                        java.io.IOException</PRE><DL><DD>Write out the Pict to the specified file.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the destination file that the Pict will be written to.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Print information about this object.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../quicktime/util/QTHandleRef.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of this object</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/Pict.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/OpenCPicParams.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../quicktime/qd/PixMap.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="Pict.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;FIELD&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;FIELD&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 + -