📄 qdgraphics.html
字号:
<A NAME="validScratch"><!-- --></A><H3>validScratch</H3><PRE>public static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>validScratch</B></PRE><DL><DD>This holds a reference to the scratchGWorld that you can use as a temporary destination graphics and still be considered as a valid destination graphics by QTDrawable objects.</DL><HR><A NAME="kDefaultPixelFormat"><!-- --></A><H3>kDefaultPixelFormat</H3><PRE>public static final int <B>kDefaultPixelFormat</B></PRE><DL><DD>This is the default pixel format that is used to create offscreen graphics contexts when no format is used. It is the same format as Java image classes use internally ie. ARGB at 32bits per pixel.</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="QDGraphics(quicktime.std.qtcomponents.ImageCompressionDialog, quicktime.qd.QDRect, int)"><!-- --></A><H3>QDGraphics</H3><PRE>public <B>QDGraphics</B>(<A HREF="../../quicktime/std/qtcomponents/ImageCompressionDialog.html">ImageCompressionDialog</A> d, <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> rp, int flags) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates an offscreen QDGraphics based on the current compression settings. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QTC/imImageCompDialog.1d.htm#imImag50">QuickTime::SCNewGWorld()</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>rp</CODE> - the boundaries of the graphics world.<DD><CODE>flags</CODE> - flags as specified to NewGWorld.<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/qtcomponents/ImageCompressionDialog.html#newGWorld(quicktime.qd.QDRect, int)"><CODE>ImageCompressionDialog.newGWorld(quicktime.qd.QDRect, int)</CODE></A></DL></DD></DL><HR><A NAME="QDGraphics(quicktime.std.image.ImageDescription, int)"><!-- --></A><H3>QDGraphics</H3><PRE>public <B>QDGraphics</B>(<A HREF="../../quicktime/std/image/ImageDescription.html">ImageDescription</A> id, int flags) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates an offscreen QDGraphics object from the width, height, depth, and color table of a specified image description structure. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.29.htm#iqImag224">QuickTime::NewImageGWorld</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>flags</CODE> - holding graphics world flags.<DT><B>See Also: </B><DD><CODE>quicktime.std.image.ImageDescription#newGWorld()</CODE></DL></DD></DL><HR><A NAME="QDGraphics(quicktime.qd.QDRect)"><!-- --></A><H3>QDGraphics</H3><PRE>public <B>QDGraphics</B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> bounds) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>An offscreen graphics world in Color QuickDraw contains a GWorld - and its handles to associated PixMap and ColorTables - that describe an offscreen graphics port. Uses a pixel depth of 32 bits in ARGB format and no special flags settings. By default the pixels are locked. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=17227">QuickTime::QTNewGWorld</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>bounds</CODE> - the boundary rectangle and port rectangle for the offscreen pixel map</DL></DD></DL><HR><A NAME="QDGraphics(int, quicktime.qd.QDRect)"><!-- --></A><H3>QDGraphics</H3><PRE>public <B>QDGraphics</B>(int pixelFormat, <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> bounds) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>An offscreen graphics world in Color QuickDraw contains a GWorld - and its handles to associated PixMap and ColorTables - that describe an offscreen graphics port. By default the pixels are locked. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=17227">QuickTime::QTNewGWorld</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the format of the pixels.<DD><CODE>bounds</CODE> - the boundary rectangle and port rectangle for the offscreen pixel map</DL></DD></DL><HR><A NAME="QDGraphics(int, quicktime.qd.QDRect, int)"><!-- --></A><H3>QDGraphics</H3><PRE>public <B>QDGraphics</B>(int pixelFormat, <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> bounds, int flags) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>An offscreen graphics world in Color QuickDraw contains a GWorld - and its handles to associated PixMap and ColorTables - that describe an offscreen graphics port. By default the pixels are locked. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=17227">QuickTime::QTNewGWorld</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the format of the pixels.<DD><CODE>bounds</CODE> - the boundary rectangle and port rectangle for the offscreen pixel map<DD><CODE>flags</CODE> - options available to your application. See GWorld flags above</DL></DD></DL><HR><A NAME="QDGraphics(int, quicktime.qd.QDRect, quicktime.qd.ColorTable, quicktime.qd.GDevice, int)"><!-- --></A><H3>QDGraphics</H3><PRE>public <B>QDGraphics</B>(int pixelFormat, <A HREF="../../quicktime/qd/QDRect.html">QDRect</A> bounds, <A HREF="../../quicktime/qd/ColorTable.html">ColorTable</A> cTable, <A HREF="../../quicktime/qd/GDevice.html">GDevice</A> aGDevice, int flags) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>An offscreen graphics world in Color QuickDraw contains a GWorld - and its handles to associated PixMap and ColorTables - that describe an offscreen graphics port. By default the pixels are locked. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=17227">QuickTime::QTNewGWorld</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>pixelFormat</CODE> - the format of the pixels.<DD><CODE>bounds</CODE> - the boundary rectangle and port rectangle for the offscreen pixel map<DD><CODE>cTable</CODE> - a ColorTable<DD><CODE>aGDevice</CODE> - a GDevice that should only be supplied if you set the noNewDevice flag, otherwise it is just ignored and can be passed null.<DD><CODE>flags</CODE> - options available to your application. See GWorld flags above</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="fromGraphicsExporter(quicktime.std.image.GraphicsExporter)"><!-- --></A><H3>fromGraphicsExporter</H3><PRE>public static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>fromGraphicsExporter</B>(<A HREF="../../quicktime/std/image/GraphicsExporter.html">GraphicsExporter</A> ge) throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Call this method to obtain the QDGraphics of the object. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refExporter.22.htm#20597">QuickTime::GraphicsExportGetInputGWorld</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ge</CODE> - the GraphicsExporter<DT><B>Returns:</B><DD>The current destination graphics port<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/image/GraphicsExporter.html#getInputGWorld()"><CODE>GraphicsExporter.getInputGWorld()</CODE></A></DL></DD></DL><HR><A NAME="getPort()"><!-- --></A><H3>getPort</H3><PRE>public static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>getPort</B>()</PRE><DL><DD>Returns the current QDGraphics. <BR><BR><b>QuickTime::GetPort</b><BR><BR><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a QDGraphics</DL></DD></DL><HR><A NAME="getPixelSize(int)"><!-- --></A><H3>getPixelSize</H3><PRE>public static int <B>getPixelSize</B>(int pixelFormat) throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Returns the pixel size for a given pixel format. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=17217">QuickTime::QTGetPixelSize</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Returns:</B><DD>pixel size</DL></DD></DL><HR><A NAME="fromGraphicsImporter(quicktime.std.image.GraphicsImporter)"><!-- --></A><H3>fromGraphicsImporter</H3><PRE>public static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>fromGraphicsImporter</B>(<A HREF="../../quicktime/std/image/GraphicsImporter.html">GraphicsImporter</A> gi) throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Call this method to obtain the QDGraphics of the object. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refImporter.20.htm#23794">QuickTime::GraphicsImportGetGWorld</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>gi</CODE> - the GraphicsImporter<DT><B>Returns:</B><DD>The current destination graphics port<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/image/GraphicsImporter.html#getGWorld()"><CODE>GraphicsImporter.getGWorld()</CODE></A></DL></DD></DL><HR><A NAME="fromMovie(quicktime.std.movies.Movie)"><!-- --></A><H3>fromMovie</H3><PRE>public static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>fromMovie</B>(<A HREF="../../quicktime/std/movies/Movie.html">Movie</A> m) throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Your application can determine a movie's graphics world by calling the getGWorld method. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.32.htm#iqMovi614">QuickTime::GetMovieGWorld()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - the Movie<DT><B>Returns:</B><DD>The current destination graphics port<DT><B>See Also: </B><DD><A HREF="../../quicktime/std/movies/Movie.html#getGWorld()"><CODE>Movie.getGWorld()</CODE></A></DL></DD></DL><HR><A NAME="fromPresentation(quicktime.streaming.Presentation, quicktime.streaming.Stream)"><!-- --></A><H3>fromPresentation</H3><PRE>public static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>fromPresentation</B>(<A HREF="../../quicktime/streaming/Presentation.html">Presentation</A> p, <A HREF="../../quicktime/streaming/Stream.html">Stream</A> s) throws <A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Your application can retrieve a Presentation's graphics world by calling the getGWorld method.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the Presentation<DD><CODE>s</CODE> - Stream<DT><B>Returns:</B><DD>The current destination graphics port<DT><B>See Also: </B><DD><A HREF="../../quicktime/streaming/Presentation.html#getGWorld()"><CODE>Presentation.getGWorld()</CODE></A></DL></DD></DL><HR><A NAME="fromMovieController(quicktime.std.movies.MovieController)"><!-- --></A><H3>fromMovieCon
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -