📄 qdgraphics.html
字号:
in the current graphics port a horizontal distance that you specify in the h parameter and a vertical distance that you specify in the v parameter.</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/QDGraphics.html#moveTo(int, int)">moveTo</A></B>(int h, int v)</CODE><BR> The MoveTo procedure changes the graphics pen誷 current location to the new horizontal coordinate you specify in the h parameter and the new vertical coordinate you specify in the v parameter.</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/QDGraphics.html#paintArc(quicktime.qd.QDRect, int, int)">paintArc</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> area, int startAngle, int arcAngle)</CODE><BR> Using the pen mode of the current graphics port, PaintArc draws a wedge of the oval bounded by the rectangle that you specify in the area parameter.</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/QDGraphics.html#paintOval(quicktime.qd.QDRect)">paintOval</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> area)</CODE><BR> Using the pen mode for the current graphics port, the PaintOval procedure draws the interior of an oval just inside the bounding rectangle that you specify in the area parameter.</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/QDGraphics.html#paintPoly(quicktime.qd.Polygon)">paintPoly</A></B>(<A HREF="../../quicktime/qd/Polygon.html">Polygon</A> poly)</CODE><BR> Using the pen pattern and pattern mode for the current graphics port, PaintPoly draws the interior of a polygon passed in the poly parameter.</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/QDGraphics.html#paintRect(quicktime.qd.QDRect)">paintRect</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> area)</CODE><BR> Paints the specified rect with the current foreground color.</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/QDGraphics.html#paintRgn(quicktime.qd.Region)">paintRgn</A></B>(<A HREF="../../quicktime/qd/Region.html">Region</A> area)</CODE><BR> Paints the specified region with the current foreground color.</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/QDGraphics.html#paintRoundRect(quicktime.qd.QDRect, int, int)">paintRoundRect</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> area, int ovalWidth, int ovalHeight)</CODE><BR> Using Pen mode of the graphics pen for the current graphics port, the PaintRoundRect procedure draws the interior of the rounded rectangle bounded by the rectangle that you specify in the area parameter.</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/QDGraphics.html#penNormal()">penNormal</A></B>()</CODE><BR> The PenNormal procedure restores the size, of the graphics pen in the current graphics port to their initial values: a size of 1 pixel by 1 pixel.</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/QDGraphics.html#penSize(int, int)">penSize</A></B>(int width, int height)</CODE><BR> The PenSize procedure sets the width that you specify in the width parameter and the height that you specify in the height parameter for the graphics pen in the current graphics port.</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/QDGraphics.html#setBackColor(quicktime.qd.QDColor)">setBackColor</A></B>(<A HREF="../../quicktime/qd/QDColor.html">QDColor</A> bColor)</CODE><BR> Sets the current background color of the QDGraphic.</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/QDGraphics.html#setClip(quicktime.qd.Region)">setClip</A></B>(<A HREF="../../quicktime/qd/Region.html">Region</A> rgn)</CODE><BR> This method sets the clip Region of the port.</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/QDGraphics.html#setCPixel(int, int, quicktime.qd.QDColor)">setCPixel</A></B>(int h, int v, <A HREF="../../quicktime/qd/QDColor.html">QDColor</A> cPix)</CODE><BR> For the pixel at the location you specify in the h and v parameters, the setCPixel procedure sets a pixel value that most closely matches the RGB color that you specify in the cPix parameter.</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/QDGraphics.html#setForeColor(quicktime.qd.QDColor)">setForeColor</A></B>(<A HREF="../../quicktime/qd/QDColor.html">QDColor</A> fColor)</CODE><BR> Sets the current foreground color of the QDGraphics.</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/QDGraphics.html#textFace(int)">textFace</A></B>(int face)</CODE><BR> The TextFace procedure sets the style of the font in which the text is to be drawn in this QDGraphics port.</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/QDGraphics.html#textFont(int)">textFont</A></B>(int fontNumber)</CODE><BR> The TextFont procedure sets the font of the QDGraphics port in which the text is to be rendered.</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/QDGraphics.html#textMode(int)">textMode</A></B>(int mode)</CODE><BR> The TextMode procedure sets the transfer mode for drawing text in this QDGraphics port.</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/QDGraphics.html#textSize(int)">textSize</A></B>(int size)</CODE><BR> The TextSize procedure sets the font size for text drawn in this QDGraphics port.</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/QDGraphics.html#textWidth(java.lang.String, int, int)">textWidth</A></B>(java.lang.String text, int firstByte, int byteCount)</CODE><BR> The TextWidth function returns the length in pixels of the specified text in this QDGraphics port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#toString()">toString</A></B>()</CODE><BR> Print information about this object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.util.QTPointerRef"><!-- --></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/QTPointerRef.html">QTPointerRef</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../quicktime/util/QTPointerRef.html#copyFromArray(int, byte[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyFromArray(int, char[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyFromArray(int, double[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyFromArray(int, float[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyFromArray(int, int[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyFromArray(int, long[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyFromArray(int, short[], int, int)">copyFromArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyToArray(int, byte[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyToArray(int, char[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyToArray(int, double[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyToArray(int, float[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyToArray(int, int[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyToArray(int, long[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#copyToArray(int, short[], int, int)">copyToArray</A>, <A HREF="../../quicktime/util/QTPointerRef.html#getBytes()">getBytes</A>, <A HREF="../../quicktime/util/QTPointerRef.html#getSize()">getSize</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 =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="kNativeSize"><!-- --></A><H3>kNativeSize</H3><PRE>public static final int <B>kNativeSize</B></PRE><DL><DD>This is the size (the number of bytes) that are required for this class</DL><HR><A NAME="scratch"><!-- --></A><H3>scratch</H3><PRE>public static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A> <B>scratch</B></PRE><DL><DD>This holds a reference to the scratchGWorld that you can use manually in calls such as Movie.setGWorld. It is used in the QTDrawable interfaces to signify that the QTDrawable is invisible (for instance when the QTCanvas that hosts the QTDrawable is hidden). It should not be reset by an application.</DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -