📄 gdevice.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:50:47 PDT 2002 --><TITLE>: Class GDevice</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GDevice.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../quicktime/qd/ColorTable.html"><B>PREV CLASS</B></A> <A HREF="../../quicktime/qd/NativeGraphics.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> <A HREF="GDevice.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.qd</FONT><BR>Class GDevice</H2><PRE>java.lang.Object | +--<A HREF="../../quicktime/QTObject.html">quicktime.QTObject</A> | +--<A HREF="../../quicktime/util/QTHandleRef.html">quicktime.util.QTHandleRef</A> | +--<B>quicktime.qd.GDevice</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../quicktime/jdirect/InterfaceLib.html">InterfaceLib</A>, <A HREF="../../quicktime/jdirect/PrimitivesLib.html">PrimitivesLib</A>, <A HREF="../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A>, <A HREF="../../quicktime/jdirect/SharedLibrary.html">SharedLibrary</A>, com.apple.jdirect.SharedLibrary</DD></DL><HR><DL><DT>public final class <B>GDevice</B><DT>extends <A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A><DT>implements <A HREF="../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A></DL><P>Refer to GDevice in QuickDraw<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_quicktime.jdirect.QuickTimeLib"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface quicktime.jdirect.<A HREF="../../quicktime/jdirect/QuickTimeLib.html">QuickTimeLib</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/jdirect/QuickTimeLib.html#JDirect_MacOSX">JDirect_MacOSX</A>, <A HREF="../../quicktime/jdirect/QuickTimeLib.html#libraryInstance">libraryInstance</A>, <A HREF="../../quicktime/jdirect/QuickTimeLib.html#name">name</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== 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>static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#fromSequenceGrabber(quicktime.std.sg.SequenceGrabber)">fromSequenceGrabber</A></B>(<A HREF="../../quicktime/std/sg/SequenceGrabber.html">SequenceGrabber</A> sg)</CODE><BR> Returns the current device of the sequence grabber.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#get()">get</A></B>()</CODE><BR> Returns the current graphic device.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/QDRect.html">QDRect</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#getBounds()">getBounds</A></B>()</CODE><BR> Returns the global Bounds associated with this gDevice</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#getFlags()">getFlags</A></B>()</CODE><BR> Returns the current scale of the screen graphics device</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#getList()">getList</A></B>()</CODE><BR> Returns the first graphic device in the device list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#getMain()">getMain</A></B>()</CODE><BR> Returns the graphic device for the main screen.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/GDevice.html">GDevice</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#getMax(quicktime.qd.QDRect)">getMax</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> globalRect)</CODE><BR> Returns the graphic device with the greatest pixel depth.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/GDevice.html">GDevice</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#getNext()">getNext</A></B>()</CODE><BR> Returns the graphic device that is the next device from this in the device list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/PixMap.html">PixMap</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#getPixMap()">getPixMap</A></B>()</CODE><BR> Returns the PixMap associated with this gDevice</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#getScale()">getScale</A></B>()</CODE><BR> Returns the current scale of the screen graphics device</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> float</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#hasScale(int, float)">hasScale</A></B>(int depth, float scale)</CODE><BR> Returns the closest possible scaling that a particular screen device can be set to in a given pixel depth</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#init(int, int)">init</A></B>(int qdRefNum, int mode)</CODE><BR> Initialises the instance of the Graphics Device.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#set()">set</A></B>()</CODE><BR> Sets this GDevice as the current device.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#setAttribute(int, boolean)">setAttribute</A></B>(int attribute, boolean value)</CODE><BR> Set the attributes of a graphics device.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#setScale(int, int)">setScale</A></B>(int scale, int flags)</CODE><BR> Sets the current scale of the screen graphics device</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/GDevice.html#testAttribute(int)">testAttribute</A></B>(int attribute)</CODE><BR> Determines whether the flag bit for an attribute has been set in the flags field of the device.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.util.QTHandleRef"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.util.<A HREF="../../quicktime/util/QTHandleRef.html">QTHandleRef</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, byte[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, char[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, double[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, float[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, int[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, long[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyFromArray(int, short[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, byte[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, char[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, double[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, float[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, int[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, long[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#copyToArray(int, short[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTHandleRef.html#fromCompressionDialogState(quicktime.std.qtcomponents.CompressionDialog)">fromCompressionDialogState</A>, <A HREF="../../quicktime/util/QTHandleRef.html#fromSCSequence(quicktime.std.qtcomponents.SCSequence, quicktime.qd.QDGraphics, quicktime.qd.QDRect)">fromSCSequence</A>, <A HREF="../../quicktime/util/QTHandleRef.html#getBytes()">getBytes</A>, <A HREF="../../quicktime/util/QTHandleRef.html#getSize()">getSize</A>, <A HREF="../../quicktime/util/QTHandleRef.html#inMemory()">inMemory</A>, <A HREF="../../quicktime/util/QTHandleRef.html#isLocked()">isLocked</A>, <A HREF="../../quicktime/util/QTHandleRef.html#lock()">lock</A>, <A HREF="../../quicktime/util/QTHandleRef.html#lockHigh()">lockHigh</A>, <A HREF="../../quicktime/util/QTHandleRef.html#moveHigh()">moveHigh</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toQTPointer()">toQTPointer</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toQTPointer(int, int)">toQTPointer</A>, <A HREF="../../quicktime/util/QTHandleRef.html#toString()">toString</A>, <A HREF="../../quicktime/util/QTHandleRef.html#unlock()">unlock</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.QTObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.<A HREF="../../quicktime/QTObject.html">QTObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/QTObject.html#disposeQTObject()">disposeQTObject</A>, <A HREF="../../quicktime/QTObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../../quicktime/QTObject.html#ID(quicktime.QTObject)">ID</A></CODE></TD></TR></TABLE> <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>getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="fromSequenceGrabber(quicktime.std.sg.SequenceGrabber)"><!-- --></A><H3>fromSequenceGrabber</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -