Sign in Join
FPDoc Onlineexperiment

TWidgetSet.Arc function

Member of TWidgetSetpublicIn unit InterfaceBase

Use Arc to draw an elliptically curved line with the current Pen.

Declaration

pascal
function Arc(DC: HDC; Left: Integer; Top: Integer; Right: Integer; 
 Bottom: Integer; Angle16Deg: Integer; 
 Angle16DegLength: Integer): Boolean; virtual

Description

The arc is part of the ellipse inscribed in the bounding rectangle.

The angles angle1 and angle2 are 1/16th of a degree. For example, a full circle equals 5760 (16*360). Positive values of Angle and AngleLength mean counter-clockwise while negative values mean clockwise direction. Zero degrees is at the 3 o'clock position.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.