Draw functionsΒΆ

These functions provide an interface to the Windows GDI (Graphics Device Interface) API enabling figures, icons and bitmaps to be drawn. Any program using these functions must include the file <draw.h>.

ArcTo()

Draw an elliptical arc

BeginPaint()

Initialise the resources for drawing operations

Chord()

Draw a chord

DrawEdge()

Draw one or more edges of a rectangle

DrawFormattedText()

Draw formatted text

DrawIcon()

Place an icon at a specified position

DrawImage()

Draw a bitmap or jpeg image

DrawText()

Draw text

Ellipse()

Draw an ellipse

EndPaint()

Release resources when drawing operations completed

GetDeviceCaps()

Retrieve the value of a given capability

GetTextAlign()

Retrieve the current formatting options for drawn text

ImageSize()

Retrieve the default size of an image

LineTo()

Draw a line to a specified position

MoveTo()

Set the current position to specified co-ordinates

Pie()

Draw a pie-shaped wedge

PolyBezierTo()

Draw one or more Bezier curves

Polygon()

Draw a polygon

PolyLineTo()

Draw one or more straight lines

Rectangle()

Draw a rectangle

RoundRect()

Draw a rectangle with rounded corners

SetBrushColor()

Set foreground and background colours for brush

SetBrushType()

Set the brush for filling subsequent figures

SetPenColor()

Set foreground colour of pen for drawing figures or lines

SetPenType()

Set the type of line for pen for drawing figures or lines

SetPenWidth()

Set width in pixels of pen for drawing figures or lines

SetPolyFill()

Set polygon fill mode

SetTextAlign()

Set the current formatting options for drawn text

TextSize()

Calculate size of a piece of text in a specified font


RELATED TOPICS

Drawing operations

General syntax of draw functions