March 28, 2024

Dynamic Windows Function [dw_draw_arc]

Syntax

void dw_draw_arc(HWND handle, HPIXMAP pixmap, int flags, int xorigin, int yorigin, int x1, int y1, int x2, int y2)

Parameters

HWND handle: Handle to the window.
HPIXMAP pixmap: Handle to the pixmap. (choose only one of these)
int flags: DW_DRAW_FILL (1) to fill the arc or DW_DRAW_DEFAULT (0). DW_DRAW_FULL will draw a complete circle/elipse.
int xorigin: X coordinate of center of arc.
int yorigin: Y coordinate of center of arc.
int x1: X coordinate of first segment of arc.
int y1: Y coordinate of first segment of arc.
int x2: X coordinate of second segment of arc.
int y2: Y coordinate of second segment of arc.

Description

Draw an arc on a window (preferably a render window).

Remarks

This API was introduced in version 2.2.

As of version 2.3 you can OR the flags with DW_DRAW_NOAA to disable antialiased drawing to the surface.