📄 qdgraphics.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#fromNativeGraphics(quicktime.qd.WinNativeGraphics)">fromNativeGraphics</A></B>(quicktime.qd.WinNativeGraphics ng)</CODE><BR> This will return a QDGraphics object from a native graphics object <br><br><b>QuickTime::GetNativeWindowPort</b><br></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#fromPresentation(quicktime.streaming.Presentation, quicktime.streaming.Stream)">fromPresentation</A></B>(<A HREF="../../quicktime/streaming/Presentation.html">Presentation</A> p, <A HREF="../../quicktime/streaming/Stream.html">Stream</A> s)</CODE><BR> Your application can retrieve a Presentation's graphics world by calling the getGWorld method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#fromSequenceGrabber(quicktime.std.sg.SequenceGrabber)">fromSequenceGrabber</A></B>(<A HREF="../../quicktime/std/sg/SequenceGrabber.html">SequenceGrabber</A> sg)</CODE><BR> Returns the QDGraphic context of the sequence grabber.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/QDColor.html">QDColor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getBackColor()">getBackColor</A></B>()</CODE><BR> Returns 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> <A HREF="../../quicktime/qd/QDRect.html">QDRect</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getBounds()">getBounds</A></B>()</CODE><BR> The port rectangle that defines a subset of the pixel map to be used for drawing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/Region.html">Region</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getClip()">getClip</A></B>()</CODE><BR> This method returns the clip Region of the port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/QDColor.html">QDColor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getCPixel(int, int)">getCPixel</A></B>(int h, int v)</CODE><BR> Returns the RGB color for the pixel at the location you specify in the h and v parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/QDColor.html">QDColor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getForeColor()">getForeColor</A></B>()</CODE><BR> Returns the current foreground color of the QDGraphic.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getPixelSize(int)">getPixelSize</A></B>(int pixelFormat)</CODE><BR> Returns the pixel size for a given pixel format.</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/QDGraphics.html#getPixMap()">getPixMap</A></B>()</CODE><BR> A PixMap object which describes the pixels in this QDGraphics.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../quicktime/qd/QDGraphics.html">QDGraphics</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getPort()">getPort</A></B>()</CODE><BR> Returns the current QDGraphics.</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/QDGraphics.html#getPortRect()">getPortRect</A></B>()</CODE><BR> The port rectangle that defines a subset of the pixel map to be used for drawing.</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#getTextFace()">getTextFace</A></B>()</CODE><BR> The getTextFace method returns the style of the current font 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#getTextFont()">getTextFont</A></B>()</CODE><BR> The getTextFont method returns the font family ID of the current font 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#getTextMode()">getTextMode</A></B>()</CODE><BR> The getTextMode method returns the current 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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getTextSize()">getTextSize</A></B>()</CODE><BR> The getTextSize method returns the current 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> <A HREF="../../quicktime/qd/Region.html">Region</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#getVisClipRgn()">getVisClipRgn</A></B>()</CODE><BR> This method returns intersection of visRgn and clipRgn 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#invertArc(quicktime.qd.QDRect, int, int)">invertArc</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> area, int startAngle, int arcAngle)</CODE><BR> InvertArc inverts the pixels enclosed by 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#invertOval(quicktime.qd.QDRect)">invertOval</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> area)</CODE><BR> The InvertOval procedure inverts the pixels enclosed by 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#invertPoly(quicktime.qd.Polygon)">invertPoly</A></B>(<A HREF="../../quicktime/qd/Polygon.html">Polygon</A> poly)</CODE><BR> invertPoly inverts the pixels enclosed by the 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#invertRoundRect(quicktime.qd.QDRect, int, int)">invertRoundRect</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> area, int ovalWidth, int ovalHeight)</CODE><BR> The InvertRoundRect procedure inverts the pixels enclosed by 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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#isOffscreen()">isOffscreen</A></B>()</CODE><BR> This returns true if the QDGraphics is an offscreen GWorld or an onscreen CGrafPort.</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#line(int, int)">line</A></B>(int h, int v)</CODE><BR> Starting at the current location of the graphics pen, the Line procedure draws a line the horizontal distance that you specify in the h parameter and the 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#lineTo(int, int)">lineTo</A></B>(int h, int v)</CODE><BR> The LineTo procedure draws a line from the graphics pen誷 current location in the current graphics port to the new location (h,v), which you specify in the local coordinates of the current graphics port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../quicktime/qd/Pict.html">Pict</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/qd/QDGraphics.html#makeThumbnail(quicktime.qd.QDRect, int)">makeThumbnail</A></B>(<A HREF="../../quicktime/qd/QDRect.html">QDRect</A> src, int colorDepth)</CODE><BR> Creates an 80-by-80 pixel thumbnail picture from the pixmap associated with this QDGraphics.</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#measureScaledText(int, java.lang.String, float, float)">measureScaledText</A></B>(int byteCount, java.lang.String text, float xScale, float yScale)</CODE><BR> The measureScaledText method (based on the QuickDraw function StdTxMeas) measures the width of scaled or unscaled text.</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#move(int, int)">move</A></B>(int h, int v)</CODE><BR> The Move procedure moves the graphics pen from its current location
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -