Home COM GDI+ WebBrowser Data Access 

Graphics Functions (GDI+)

 

 

The Graphics functions provide methods for drawing lines, curves, figures, images, and text. A Graphics object stores attributes of the display device and attributes of the items to be drawn.

 

Return Values

If the function succeeds, it returns Ok, which is an element of the Status enumeration.

 

If the function fails, it returns one of the other elements of the Status enumeration.

 

GdipDeleteGraphics

 

Description

Deletes the specified Graphics object.

Syntax

GpStatus WINGDIPAPI GdipDeleteGraphics(

    GpGraphics *graphics

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDeleteGraphics ( _

    BYVAL graphics AS DWORD _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

 

GdipDrawArc

 

Description

Draws an arc. The arc is part of an ellipse.

Syntax

GpStatus WINGDIPAPI GdipDrawArc(

    GpGraphics *graphics,

    GpPen *pen,

    REAL x,

    REAL y,

    REAL width,

    REAL height,

    REAL startAngle,

    REAL sweepAngle

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawArc ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x AS SINGLE, _

    BYVAL y AS SINGLE, _

    BYVAL nWidth AS SINGLE, _

    BYVAL nHeight AS SINGLE, _

    BYVAL startAngle AS SINGLE, _

    BYVAL sweepAngle AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the arc.

x

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.

y

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.

width

[in] Simple precision value that specifies the width of the ellipse that contains the arc.

height

[in] Simple precision value that specifies the height of the ellipse that contains the arc.

startAngle

[in] Simple precision value that specifies the angle between the x-axis and the starting point of the arc.

sweepAngle

[in] Simple precision value that specifies the angle between the starting and ending points of the arc.

 

GdipDrawArcI

 

Description

Draws an arc. The arc is part of an ellipse.

Syntax

GpStatus WINGDIPAPI GdipDrawArcI(

    GpGraphics *graphics,

    GpPen *pen,

    INT x,

    INT y,

    INT width,

    INT height,

    REAL startAngle,

    REAL sweepAngle

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawArcI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x AS LONG, _

    BYVAL y AS LONG, _

    BYVAL nWidth AS LONG, _

    BYVAL nHeight AS LONG, _

    BYVAL startAngle AS SINGLE, _

    BYVAL sweepAngle AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the arc.

x

[in] Long integer value that specifies the x-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.

y

[in]  Long integer value that specifies the y-coordinate of the upper-left corner of the bounding rectangle for the ellipse that contains the arc.

width

[in]  Long integer value that specifies the width of the ellipse that contains the arc.

height

[in]  Long integer value that specifies the height of the ellipse that contains the arc.

startAngle

[in] Simple precision value that specifies the angle between the x-axis and the starting point of the arc.

sweepAngle

[in] Simple precision value that specifies the angle between the starting and ending points of the arc.

 

GdipDrawBezier

 

Description

Draws a Bezier spline.

Syntax

GpStatus WINGDIPAPI GdipDrawBezier(

    GpGraphics *graphics,

    GpPen *pen,

    REAL x1,

    REAL y1,

    REAL x2,

    REAL y2,

    REAL x3,

    REAL y3,

    REAL x4,

    REAL y4

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawBezier ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x1 AS SINGLE, _

    BYVAL x1 AS SINGLE, _

    BYVAL x2 AS SINGLE, _

    BYVAL x2 AS SINGLE, _

    BYVAL x3 AS SINGLE, _

    BYVAL x3 AS SINGLE, _

    BYVAL x4 AS SINGLE, _

    BYVAL x4 AS SINGLE, _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier spline.

x1

[in] Simple precision value that specifies the x-coordinate of the starting point of the Bezier spline.

y1

[in] Simple precision value that specifies the y-coordinate of the starting point of the Bezier spline.

x2

[in] Simple precision value that specifies the x-coordinate of the first control point of the Bezier spline.

y2

[in] Simple precision value that specifies the y-coordinate of the first control point of the Bezier spline

x3

[in] Simple precision value that specifies the x-coordinate of the second control point of the Bezier spline.

y3

[in] Simple precision value that specifies the y-coordinate of the second control point of the Bezier spline.

x4

[in] Simple precision value that specifies the x-coordinate of the ending point of the Bezier spline.

y4

[in] Simple precision value that specifies the y-coordinate of the ending point of the Bezier spline

Remarks

A Bezier spline does not pass through its control points. The control points act as magnets, pulling the curve in certain directions to influence the way the Bezier spline bends.

 

GdipDrawBezierI

 

Description

Draws a Bezier spline.

Syntax

GpStatus WINGDIPAPI GdipDrawBezierI(

    GpGraphics *graphics,

    GpPen *pen,

    INT x1,

    INT y1,

    INT x2,

    INT y2,

    INT x3,

    INT y3,

    INT x4,

    INT y4

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawBezierI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x1 AS LONG, _

    BYVAL y1 AS LONG, _

    BYVAL x2 AS LONG, _

    BYVAL y2 AS LONG, _

    BYVAL x3 AS LONG, _

    BYVAL y3 AS LONG, _

    BYVAL x4 AS LONG, _

    BYVAL y4 AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier spline.

x1

[in] Long integer value that specifies the x-coordinate of the starting point of the Bezier spline.

y1

[in] Long integer value that specifies the y-coordinate of the starting point of the Bezier spline.

x2

[in] Long integer value that specifies the x-coordinate of the first control point of the Bezier spline.

y2

[in] Long integer value that specifies the y-coordinate of the first control point of the Bezier spline

x3

[in] Long integer value that specifies the x-coordinate of the second control point of the Bezier spline.

y3

[in] Long integer value that specifies the y-coordinate of the second control point of the Bezier spline.

x4

[in] Long integer value that specifies the x-coordinate of the ending point of the Bezier spline.

y4

[in] Long integer value that specifies the y-coordinate of the ending point of the Bezier spline

Remarks

A Bezier spline does not pass through its control points. The control points act as magnets, pulling the curve in certain directions to influence the way the Bezier spline bends.

 

GdipDrawBeziers

 

Description

Draws a sequence of connected Bezier splines.

Syntax

GpStatus WINGDIPAPI GdipDrawBeziers(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawBeziers ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointF structures that specify the starting, ending, and control points of the Bezier splines.

count

[in] Integer that specifies the number of elements in the points array.

Remarks

A Bezier spline does not pass through its control points. The control points act as magnets, pulling the curve in certain directions to influence the way a Bezier spline bends. Each Bezier spline requires a starting point and an ending point. Each ending point is the starting point for the next Bezier spline.

 

GdipDrawBeziersI

 

Description

Draws a sequence of connected Bezier splines.

Syntax

GpStatus WINGDIPAPI GdipDrawBeziersI(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPoint *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawBeziersI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG, _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointL objects that specify the starting, ending, and control points of the Bezier splines. The ending coordinate of one Bezier spline is the starting coordinate of the next Bezier spline.

count

[in] Integer that specifies the number of elements in the points array.

Remarks

A Bezier spline does not pass through its control points. The control points act as magnets, pulling the curve in certain directions to influence the way the Bezier splines bend.

 

GdipDrawClosedCurve

 

Description

Draws a closed cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawClosedCurve(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawClosedCurve ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointF structures that specify the coordinates of the closed cardinal spline. The array of PointF structures must contain a minimum of three elements.

count

[in] Long integer value that specifies the number of elements in the points array.

Remarks

Each ending point is the starting point for the next cardinal spline. In a closed cardinal spline, the curve continues through the last point in the points array and connects with the first point in the array.

 

GdipDrawClosedCurve2

 

Description

Draws a closed cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawClosedCurve2(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count,

    REAL tension

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawClosedCurve2 ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG, _

    BYVAL tension AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointF structures that specify the coordinates of the closed cardinal spline. The array of PointF structures must contain a minimum of three elements.

count

[in] Long integer value that specifies the number of elements in the points array.

tension

[in] Simple precision value that specifies how tightly the curve bends though the coordinates of the closed cardinal spline.

Remarks

Each ending point is the starting point for the next cardinal spline. In a closed cardinal spline, the curve continues through the last point in the points array and connects with the first point in the array.

 

GdipDrawClosedCurve2I

 

Description

Draws a closed cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawClosedCurve2I(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPoint *points,

    INT count,

    REAL tension

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawClosedCurve2I ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG, _

    BYVAL tension AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointL structures that specify the coordinates of the closed cardinal spline. The array of PointL structures must contain a minimum of three elements.

count

[in] Long integer value that specifies the number of elements in the points array.

tension

[in] Simple precision value that specifies how tightly the curve bends though the coordinates of the closed cardinal spline.

Remarks

Each ending point is the starting point for the next cardinal spline. In a closed cardinal spline, the curve continues through the last point in the points array and connects with the first point in the array.

 

GdipDrawClosedCurveI

 

Description

Draws a closed cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawClosedCurveI(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPoint *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawClosedCurveI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointL structures that specify the coordinates of the closed cardinal spline. The array of PointL  structures must contain a minimum of three elements.

count

[in] Long integer value that specifies the number of elements in the points array.

Remarks

In a closed cardinal spline, the curve continues through the last point in the points array and connects with the first point in the array.

 

GdipDrawCurve

 

Description

Draws a cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawCurve(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawCurve ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointF structures that specify the coordinates that the cardinal spline passes through.

count

[in] Long integer value that specifies the number of elements in the points array.

Remarks

A segment is defined as a curve that connects two consecutive points in the cardinal spline. The ending point of each segment is the starting point for the next.

 

GdipDrawCurve2

 

Description

Draws a cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawCurve2(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count,

    REAL tension

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawCurve2 ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG, _

    BYVAL tension AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointF structures that specify the coordinates that the cardinal spline passes through.

count

[in] Long integer value that specifies the number of elements in the points array.

tension

[in] Simple precision value that specifies how tightly the curve bends though the coordinates of the cardinal spline.

Remarks

A segment is defined as a curve that connects two consecutive points in the cardinal spline. The ending point of each segment is the starting point for the next.

 

GdipDrawCurve2I

 

Description

Draws a cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawCurve2I(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPoint *points,

    INT count,

    REAL tension

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawCurve2I ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG, _

    BYVAL tension AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointL structures that specify the coordinates that the cardinal spline passes through.

count

[in] Long integer value  that specifies the number of elements in the points array.

tension

[in] Simple precision value that specifies how tightly the curve bends though the coordinates of the cardinal spline.

Remarks

A segment is defined as a curve that connects two consecutive points in the cardinal spline. The ending point of each segment is the starting point for the next.

 

GdipDrawCurve3

 

Description

Draws a cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawCurve3(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count,

    INT offset,

    INT numberOfSegments,

    REAL tension

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawCurve3 ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG, _

    BYVAL offset AS LONG, _

    BYVAL numberOfSegments AS LONG, _

    BYVAL tension AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointF structures that specify the coordinates that the cardinal spline passes through.

count

[in] Long integer value that specifies the number of elements in the points array.

offset

[in] Long integer value that specifies the element in the points array that specifies the point at which the cardinal spline begins.

numberOfSegments

[in] Integer that specifies the number of segments in the cardinal spline.

tension

[in] Single precision value that specifies how tightly the curve bends though the coordinates of the cardinal spline.

Remarks

A segment is defined as a curve that connects two consecutive points in the cardinal spline. The ending point of each segment is the starting point for the next. The numberOfSegments parameter must not be greater than the count parameter minus the offset parameter plus one.

 

GdipDrawCurve3I

 

Description

Draws a cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawCurve3I(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPoint *points,

    INT count,

    INT offset,

    INT numberOfSegments,

    REAL tension

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawCurve3I ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG, _

    BYVAL offset AS LONG, _

    BYVAL numberOfSegments AS LONG, _

    BYVAL tension AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointL structures that specify the coordinates that the cardinal spline passes through.

count

[in] Long integer value that specifies the number of elements in the points array.

offset

[in] Long integer value that specifies the element in the points array that specifies the point at which the cardinal spline begins.

numberOfSegments

[in] Long integer value that specifies the number of segments in the cardinal spline.

tension

[in] Simple precision value that specifies how tightly the curve bends though the coordinates of the cardinal spline.

Remarks

A segment is defined as a curve that connects two consecutive points in the cardinal spline. The ending point of each segment is the starting point for the next. The numberOfSegments parameter must not be greater than the count parameter minus the offset parameter plus one.

 

GdipDrawCurveI

 

Description

Draws a cardinal spline.

Syntax

GpStatus WINGDIPAPI GdipDrawCurveI(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPoint *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawCurveI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

points

[in] Pointer to an array of PointL structures that specify the coordinates that the cardinal spline passes through.

count

[in] Long integer value that specifies the number of elements in the points array.

Remarks

A segment is defined as a curve that connects two consecutive points in the cardinal spline. The ending point of each segment is the starting point for the next.

 

GdipDrawEllipse

 

Description

Draws an ellipse.

Syntax

GpStatus WINGDIPAPI GdipDrawEllipse(

    GpGraphics *graphics,

    GpPen *pen,

    REAL x,

    REAL y,

    REAL width,

    REAL height

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawEllipse ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x AS SINGLE, _

    BYVAL y AS SINGLE, _

    BYVAL nWidth AS SINGLE, _

    BYVAL nHeight AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

x

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse.

y

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the rectangle that bounds the ellipse.  

width

[in] Simple precision value that specifies the width of the rectangle that bounds the ellipse.

height

[in] Simple precision value that specifies the height of the rectangle that bounds the ellipse.

 

GdipDrawEllipseI

 

Description

Draws an ellipse.

Syntax

GpStatus WINGDIPAPI GdipDrawEllipseI(

    GpGraphics *graphics,

    GpPen *pen,

    INT x,

    INT y,

    INT width,

    INT height

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawEllipseI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x AS LONG, _

    BYVAL y AS LONG, _

    BYVAL nWidth AS LONG, _

    BYVAL nHeight AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the Bezier splines.

x

[in] Long integer value that specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse.

y

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the rectangle that bounds the ellipse.  

width

[in] Long integer value that specifies the width of the rectangle that bounds the ellipse.

height

[in] Long integer value that specifies the height of the rectangle that bounds the ellipse.

 

GdipDrawImage

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImage(_

    GpGraphics *graphics,

    GpImage *image,

    REAL x,

    REAL y

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImage ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL x AS SINGLE, _

    BYVAL y AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

x

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the rendered image.

y

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the rendered image.

 

GdipDrawImageI

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImageI(

    GpGraphics *graphics,

    GpImage *image,

    INT x,

    INT y

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImageI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL x AS LONG, _

    BYVAL y AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

x

[in] Long integer value  that specifies the x-coordinate of the upper-left corner of the rendered image.

y

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the rendered image.

 

GdipDrawImagePointRect

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImagePointRect(

    GpGraphics *graphics,

    GpImage *image,

    REAL x,

    REAL y,

    REAL srcx,

    REAL srcy,

    REAL srcwidth,

    REAL srcheight,

    GpUnit srcUnit

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImagePointRect ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL x AS SINGLE, _

    BYVAL y AS SINGLE, _

    BYVAL srcx AS SINGLE, _

    BYVAL srcy AS SINGLE, _

    BYVAL srcwidth AS SINGLE, _

    BYVAL srcheight AS SINGLE, _

    BYVAL srcUnit AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

x

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the rendered image.

y

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the rendered image.

srcx

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcy

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcwidth

[in] Simple precision value that specifies the width of the portion of the source image to be drawn

srcheight

[in] Simple precision value that specifies the height of the portion of the source image to be drawn.

srcunit

[in] Element of the Unit enumeration that specifies the unit of measure for the image. The default value is UnitPixel.

 

GdipDrawImagePointRectI

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImagePointRectI(

    GpGraphics *graphics,

    GpImage *image,

    INT x,

    INT y,

    INT srcx,

    INT srcy,

    INT srcwidth,

    INT srcheight,

    GpUnit srcUnit

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImagePointRectI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL x AS LONG, _

    BYVAL y AS LONG, _

    BYVAL srcx AS LONG, _

    BYVAL srcy AS LONG, _

    BYVAL srcwidth AS LONG, _

    BYVAL srcheight AS LONG, _

    BYVAL srcUnit AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

x

[in] Long integer value  that specifies the x-coordinate of the upper-left corner of the rendered image.

y

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the rendered image.

srcx

[in] Long integer value that specifies the x-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcy

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcwidth

[in] Long integer value that specifies the width of the portion of the source image to be drawn

srcheight

[in] Long integer value that specifies the height of the portion of the source image to be drawn.

srcunit

[in] Element of the Unit enumeration that specifies the unit of measure for the image. The default value is UnitPixel.

 

GdipDrawImagePoints

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImagePoints(

    GpGraphics *graphics,

    GpImage *image,

    GDIPCONST GpPointF *dstpoints,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImagePoints ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYREF dstpoints AS PointF, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

dstpoints

[in] Pointer to an array of PointF structures that specify the area, in a parallelogram, in which to draw the image.

count

[in] Long integer value  that specifies the number of elements in the destPoints array.

Remarks

The value of the count parameter must equal 3 to specify the coordinates of the upper-left corner, upper-right corner, and lower-left corner of the parallelogram. The coordinate of the lower-right corner is calculated using the three given coordinates, the width, and the height of the image. The image is scaled to fit the parallelogram.

 

GdipDrawImagePointsI

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImagePointsI(

    GpGraphics *graphics,

    GpImage *image,

    GDIPCONST GpPoint *dstpoints,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImagePointsI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYREF dstpoints AS PointL, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

dstpoints

[in] Pointer to an array of PointL structures that specify the area, in a parallelogram, in which to draw the image.

count

[in] Long integer value that specifies the number of elements in the destPoints array.

Remarks

The value of the count parameter must equal 3 to specify the coordinates of the upper-left corner, upper-right corner, and lower-left corner of the parallelogram. The coordinate of the lower-right corner is calculated using the three given coordinates, the width, and the height of the image. The image is scaled to fit the parallelogram.

 

GdipDrawImagePointsRect

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImagePointsRect(

    GpGraphics *graphics,

    GpImage *image,

    GDIPCONST GpPointF *points,

    INT count,

    REAL srcx,

    REAL srcy,

    REAL srcwidth,

    REAL srcheight,

    GpUnit srcUnit,

    GDIPCONST GpImageAttributes* imageAttributes,

    DrawImageAbort callback,

    VOID * callbackData

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImagePointsRect ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG, _

    BYVAL srcx AS SINGLE, _

    BYVAL srcy AS SINGLE, _

    BYVAL srcwidth AS SINGLE, _

    BYVAL srcheight AS SINGLE, _

    BYVAL srcUnit AS LONG, _

    BYVAL imageAttributes AS DWORD, _

    BYVAL pcallback AS DWORD, _

    BYVAL callbackData AS DWORD _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

points

[in] Pointer to an array of PointF structures that specify the area, in a parallelogram, in which to draw the image.

count

[in] Long integer value that specifies the number of elements in the destPoints array.

srcx

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcy

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcwidth

[in] Simple precision value that specifies the width of the portion of the source image to be drawn.

srcheight

[in] Simple precision value that specifies the height of the portion of the source image to be drawn.

srcunit

[in] Element of the Unit enumeration that specifies the unit of measure for the image. The default value is UnitPixel.

imageAttributes

[in] Pointer to an ImageAttributes structure that specifies the color and size attributes of the image to be drawn. The default value is NULL.

callback

[in] Callback method used to cancel the drawing in progress. The default value is NULL.

callbackData

[in] Pointer to additional data used by the method specified by the callback parameter. The default value is NULL.

Remarks

The value of the count parameter must equal 3 to specify the coordinates of the upper-left corner, upper-right corner, and lower-left corner of the parallelogram. The coordinate of the lower-right corner is calculated using the three given coordinates, the width, and the height of the image. The portion of the source image to be drawn is scaled to fit the parallelogram.

 

GdipDrawImagePointsRectI

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImagePointsRectI(

    GpGraphics *graphics,

    GpImage *image,

    GDIPCONST GpPoint *points,

    INT count,

    INT srcx,

    INT srcy,

    INT srcwidth,

    INT srcheight,

    GpUnit srcUnit,

    GDIPCONST GpImageAttributes* imageAttributes,

    DrawImageAbort callback,

    VOID * callbackData

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImagePointsRectI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG, _

    BYVAL srcx AS LONG, _

    BYVAL srcy AS LONG, _

    BYVAL srcwidth AS LONG, _

    BYVAL srcheight AS LONG, _

    BYVAL srcUnit AS LONG, _

    BYVAL imageAttributes AS DWORD, _

    BYVAL pcallback AS DWORD, _

    BYVAL callbackData AS DWORD _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

points

[in] Pointer to an array of PointL structures that specify the area, in a parallelogram, in which to draw the image.

count

[in] Long integer value that specifies the number of elements in the destPoints array.

srcx

[in] Long integer value that specifies the x-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcy

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the portion of the source image to be drawn.

srcwidth

[in] Long integer value that specifies the width of the portion of the source image to be drawn.

srcheight

[in] Long integer value that specifies the height of the portion of the source image to be drawn.

srcunit

[in] Element of the Unit enumeration that specifies the unit of measure for the image. The default value is UnitPixel.

imageAttributes

[in] Pointer to an ImageAttributes structure that specifies the color and size attributes of the image to be drawn. The default value is NULL.

callback

[in] Callback method used to cancel the drawing in progress. The default value is NULL.

callbackData

[in] Pointer to additional data used by the method specified by the callback parameter. The default value is NULL.

Remarks

The value of the count parameter must equal 3 to specify the coordinates of the upper-left corner, upper-right corner, and lower-left corner of the parallelogram. The coordinate of the lower-right corner is calculated using the three given coordinates, the width, and the height of the image. The portion of the source image to be drawn is scaled to fit the parallelogram.

 

GdipDrawImageRect

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImageRect(

    GpGraphics *graphics,

    GpImage *image,

    REAL x,

    REAL y,

    REAL width,

    REAL height

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImageRect ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL x AS SINGLE, _

    BYVAL y AS SINGLE, _

    BYVAL nWidth AS SINGLE, _

    BYVAL nHeight AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

x

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the destination rectangle at which to draw the image.

y

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the destination rectangle at which to draw the image.

width

[in] Simple precision value that specifies the width of the destination rectangle at which to draw the image.

height

[in] Simple precision value that specifies the height of the destination rectangle at which to draw the image.

 

GdipDrawImageRectI

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImageRectI(

    GpGraphics *graphics,

    GpImage *image,

    INT x,

    INT y,

    INT width,

    INT height

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImageRectI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL x AS LONG, _

    BYVAL y AS LONG, _

    BYVAL nWidth AS LONG, _

    BYVAL nHeight AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

x

[in] Long integer value that specifies the x-coordinate of the upper-left corner of the destination rectangle at which to draw the image.

y

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the destination rectangle at which to draw the image.

width

[in] Long integer value that specifies the width of the destination rectangle at which to draw the image.

height

[in] Long integer value that specifies the height of the destination rectangle at which to draw the image.

 

GdipDrawImageRectRect

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImageRectRect(

    GpGraphics *graphics,

    GpImage *image,

    REAL dstx,

    REAL dsty,

    REAL dstwidth,

    REAL dstheight,

    REAL srcx,

    REAL srcy,

    REAL srcwidth,

    REAL srcheight,

    GpUnit srcUnit,

    GDIPCONST GpImageAttributes* imageAttributes,

    DrawImageAbort callback,

    VOID * callbackData

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImageRectRect ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL dstx AS SINGLE, _

    BYVAL dsty AS SINGLE, _

    BYVAL dstwidth AS SINGLE, _

    BYVAL dstheight AS SINGLE, _

    BYVAL srcx AS SINGLE, _

    BYVAL srcy AS SINGLE, _

    BYVAL srcwidth AS SINGLE, _

    BYVAL srcheight AS SINGLE, _

    BYVAL srcUnit AS LONG, _

    BYVAL imageAttributes AS DWORD, _

    BYVAL pcallback AS DWORD, _

    BYVAL callbackData AS DWORD _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

dstx

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the drawing area for the image.

dsty

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the drawing area for the image.

dstwidth

[in] Simple precision value that specifies the width of the drawing area to be drawn.

dstheight

[in] Simple precision value that specifies the height of the drawing area to be drawn.

srcwidth

[in] Simple precision value that specifies the width of the portion of the source image to be drawn.

srcheight

[in] Simple precision value that specifies the height of the portion of the source image to be drawn.

srcunit

[in] Element of the Unit enumeration that specifies the unit of measure for the image. The default value is UnitPixel.

imageAttributes

[in] Pointer to an ImageAttributes structure that specifies the color and size attributes of the image to be drawn. The default value is NULL.

callback

[in] Callback method used to cancel the drawing in progress. The default value is NULL.

callbackData

[in] Pointer to additional data used by the method specified by the callback parameter. The default value is NULL.

Remarks

The portion of the source image to be drawn is scaled to fit the rectangle.

 

GdipDrawImageRectRectI

 

Description

Draws an image at a specified location.

Syntax

GpStatus WINGDIPAPI GdipDrawImageRectRectI(

    GpGraphics *graphics,

    GpImage *image,

    INT dstx,

    INT dsty,

    INT dstwidth,

    INT dstheight,

    INT srcx,

    INT srcy,

    INT srcwidth,

    INT srcheight,

    GpUnit srcUnit,

    GDIPCONST GpImageAttributes* imageAttributes,

    DrawImageAbort callback,

    VOID * callbackData

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawImageRectRectI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pImage AS DWORD, _

    BYVAL dstx AS LONG, _

    BYVAL dsty AS LONG, _

    BYVAL dstwidth AS LONG, _

    BYVAL dstheight AS LONG, _

    BYVAL srcx AS LONG, _

    BYVAL srcy AS LONG, _

    BYVAL srcwidth AS LONG, _

    BYVAL srcheight AS LONG, _

    BYVAL srcUnit AS LONG, _

    BYVAL imageAttributes AS DWORD, _

    BYVAL pcallback AS DWORD, _

    BYVAL callbackData AS DWORD _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

image

[in] Pointer to an Image object that specifies the image to be drawn.

dstx

[in] Long integer value that specifies the x-coordinate of the upper-left corner of the drawing area for the image.

dsty

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the drawing area for the image.

dstwidth

[in] Long integer value that specifies the width of the drawing area to be drawn.

dstheight

[in] Long integer value that specifies the height of the drawing area to be drawn.

srcwidth

[in] Long integer value that specifies the width of the portion of the source image to be drawn.

srcheight

[in] Long integer value that specifies the height of the portion of the source image to be drawn.

srcunit

[in] Element of the Unit enumeration that specifies the unit of measure for the image. The default value is UnitPixel.

imageAttributes

[in] Pointer to an ImageAttributes structure that specifies the color and size attributes of the image to be drawn. The default value is NULL.

callback

[in] Callback method used to cancel the drawing in progress. The default value is NULL.

callbackData

[in] Pointer to additional data used by the method specified by the callback parameter. The default value is NULL.

Remarks

The portion of the source image to be drawn is scaled to fit the rectangle.

 

GdipDrawLine

 

Description

Draws a line that connects two points.

Syntax

GpStatus WINGDIPAPI GdipDrawLine(

    GpGraphics *graphics,

    GpPen *pen,

    REAL x1,

    REAL y1,

    REAL x2,

    REAL y2

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawLine ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x1 AS SINGLE, _

    BYVAL y1 AS SINGLE, _

    BYVAL x2 AS SINGLE, _

    BYVAL y2 AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the line.

x1

[in] Simple precision value that specifies the x-coordinate of the starting point of the line.

y1

[in] Simple precision value that specifies the y-coordinate of the starting point of the line.

x2

[in] Simple precision value that specifies the x-coordinate of the ending point of the line.

y2

[in] Simple precision value that specifies the y-coordinate of the ending point of the line.

 

GdipDrawLineI

 

Description

Draws a line that connects two points.

Syntax

GpStatus WINGDIPAPI GdipDrawLineI(

    GpGraphics *graphics,

    GpPen *pen,

    INT x1,

    INT y1,

    INT x2,

    INT y2

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawLineI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x1 AS LONG, _

    BYVAL y1 AS LONG, _

    BYVAL x2 AS LONG, _

    BYVAL y2 AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the line.

x1

[in] Long integer value that specifies the x-coordinate of the starting point of the line.

y1

[in] Long integer value that specifies the y-coordinate of the starting point of the line.

x2

[in] Long integer value that specifies the x-coordinate of the ending point of the line.

y2

[in] Long integer value that specifies the y-coordinate of the ending point of the line.

 

GdipDrawLines

 

Description

Draws a sequence of connected lines.

Syntax

GpStatus WINGDIPAPI GdipDrawLines(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawLines ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the line.

points

[in] Pointer to an array of PointF structures that specify the starting and ending points of the lines.

count

[in] Long integer value that specifies the number of elements in the points array.

Remarks

Each line requires a starting point and an ending point. The ending point of each line is the starting point for the next.

 

GdipDrawLinesI

 

Description

Draws a sequence of connected lines.

Syntax

GpStatus WINGDIPAPI GdipDrawLinesI(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPoint *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawLinesI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the line.

points

[in] Pointer to an array of PointL structures that specify the starting and ending points of the lines.

count

[in] Long integer value that specifies the number of elements in the points array.

Remarks

Each line requires a starting point and an ending point. The ending point of each line is the starting point for the next.

 

GdipDrawPath

 

Description

Draws a sequence of lines and curves defined by a GraphicsPath object.

Syntax

GpStatus WINGDIPAPI GdipDrawPath(

    GpGraphics *graphics,

    GpPen *pen,

    GpPath *path

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawPath ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL path AS DWORD _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the path.

path

[in] Pointer to a GraphicsPath object that specifies the sequence of lines and curves that make up the path.

 

GdipDrawPie

 

Description

Draws a pie.

Syntax

GpStatus WINGDIPAPI GdipDrawPie(

    GpGraphics *graphics,

    GpPen *pen,

    REAL x,

    REAL y,

    REAL width,

    REAL height,

    REAL startAngle,

    REAL sweepAngle

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawPie ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x AS SINGLE, _

    BYVAL y AS SINGLE, _

    BYVAL nWidth AS SINGLE, _

    BYVAL nHeight AS SINGLE, _

    BYVAL startAngle AS SINGLE, _

    BYVAL sweepAngle AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the pie.

x

[in] Simple precision value that specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.

y

[in] Simple precision value that specifies the y-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.

width

[in] Simple precision value that specifies the width of the rectangle that bounds the ellipse in which to draw the pie.

height

[in] Simple precision value that specifies the height of the rectangle that bounds the ellipse in which to draw the pie.

startAngle

[in] Simple precision value that specifies the angle, in degrees, between the x-axis and the starting point of the arc that defines the pie. A positive value specifies clockwise rotation.

sweepAngle

[in] Simple precision value that specifies the angle, in degrees, between the starting and ending points of the arc that defines the pie. A positive value specifies clockwise rotation.

 

GdipDrawPieI

 

Description

Draws a pie.

Syntax

GpStatus WINGDIPAPI GdipDrawPieI(

    GpGraphics *graphics,

    GpPen *pen,

    INT x,

    INT y,

    INT width,

    INT height,

    REAL startAngle,

    REAL sweepAngle

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawPieI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x AS LONG, _

    BYVAL y AS LONG, _

    BYVAL nWidth AS LONG, _

    BYVAL nHeight AS LONG, _

    BYVAL startAngle AS SINGLE, _

    BYVAL sweepAngle AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the pie.

x

[in] Long integer value that specifies the x-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.

y

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the rectangle that bounds the ellipse in which to draw the pie.

width

[in] Long integer value that specifies the width of the rectangle that bounds the ellipse in which to draw the pie.

height

[in] Long integer value that specifies the height of the rectangle that bounds the ellipse in which to draw the pie.

startAngle

[in] Simple precision value that specifies the angle, in degrees, between the x-axis and the starting point of the arc that defines the pie. A positive value specifies clockwise rotation.

sweepAngle

[in] Simple precision value that specifies the angle, in degrees, between the starting and ending points of the arc that defines the pie. A positive value specifies clockwise rotation.

 

GdipDrawPolygon

 

Description

Draws a polygon.

Syntax

GpStatus WINGDIPAPI GdipDrawPolygon(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPointF *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawPolygon ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointF, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the polygon.

points

[in] Pointer to an array of PointF structures that specify the vertices of the polygon.

count

[in] Long integer value that specifies the number of elements in the points array.

Remarks

If the first and last coordinates in the points array are not identical, a line is drawn between them to close the polygon.

 

GdipDrawPolygonI

 

Description

Draws a polygon.

Syntax

GpStatus WINGDIPAPI GdipDrawPolygonI(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpPoint *points,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawPolygonI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF pPoints AS PointL, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the polygon.

points

[in] Pointer to an array of PointL structures that specify the vertices of the polygon.

count

[in] Long integer value that specifies the number of elements in the points array.

Remarks

If the first and last coordinates in the points array are not identical, a line is drawn between them to close the polygon.

 

GdipDrawRectangle

 

Description

Draws a rectangle.

Syntax

GpStatus WINGDIPAPI GdipDrawRectangle(

    GpGraphics *graphics,

    GpPen *pen,

    REAL x,

    REAL y,

    REAL width,

    REAL height

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawRectangle ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x AS SINGLE, _

    BYVAL y AS SINGLE, _

    BYVAL nWidth AS SINGLE, _

    BYVAL nHeight AS SINGLE _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the rectangle.

x

[in] Single precision value that specifies the x-coordinate of the upper-left corner of the rectangle.

y

[in] Single precision value that specifies the y-coordinate of the upper-left corner of the rectangle.

width

[in] Single precision value that specifies the width of the rectangle.

height

[in] Single precision value that specifies the height of the rectangle.

 

GdipDrawRectangleI

 

Description

Draws a rectangle.

Syntax

GpStatus WINGDIPAPI GdipDrawRectangleI(

    GpGraphics *graphics,

    GpPen *pen,

    INT x,

    INT y,

    INT width,

    INT height

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawRectangleI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYVAL x AS LONG, _

    BYVAL y AS LONG, _

    BYVAL nWidth AS LONG, _

    BYVAL nHeight AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the rectangle.

x

[in] Long integer value  that specifies the x-coordinate of the upper-left corner of the rectangle.

y

[in] Long integer value that specifies the y-coordinate of the upper-left corner of the rectangle.

width

[in] Long integer value that specifies the width of the rectangle.

height

[in] Long integer value that specifies the height of the rectangle.

 

GdipDrawRectangles

 

Description

Draws a sequence of rectangles.

Syntax

GpStatus WINGDIPAPI GdipDrawRectangles(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpRectF *rects,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawRectangles ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF rects AS RECTF, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the rectangles.

rects

[in] Pointer to an array of RectF structures that specify the coordinates of the rectangles to be drawn. 

count

[in] Long integer value that specifies the number of elements in the rects array.

 

GdipDrawRectanglesI

 

Description

Draws a sequence of rectangles.

Syntax

GpStatus WINGDIPAPI GdipDrawRectanglesI(

    GpGraphics *graphics,

    GpPen *pen,

    GDIPCONST GpRect *rects,

    INT count

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDrawRectanglesI ( _

    BYVAL graphics AS DWORD, _

    BYVAL pen AS DWORD, _

    BYREF rects AS RECT, _

    BYVAL count AS LONG _

) AS LONG

Parameters

 

graphics

[in] Pointer to the Graphics object.

pen

[in] Pointer to a pen that is used to draw the rectangles.

rects

[in] Pointer to an array of Rect structures that specify the coordinates of the rectangles to be drawn. 

count

[in] Long integer value that specifies the number of elements in the rects array.

 

Page last updated on Monday, 11 December 2006 11:02:46 +0100