Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TBitmap32🞂MoveToMethodPublic
Inherited from:TCustomBitmap32.MoveTo

TBitmap32.MoveTo

Sets the current pen position for subsequent LineTo drawing operations using integer, fixed-point, or floating-point coordinates.

Declaration ​

pascal
procedure MoveTo(X, Y: Integer);
procedure MoveToX(X, Y: TFixed);
procedure MoveToF(X, Y: Single);

Parameters ​

ParameterTypeDescription
X, Y-Target pixel coordinates.

Description ​

The MoveTo methods set the current drawing pen position (PenPos / PenPosF) to coordinates (X, Y) without drawing a line segment. Subsequent calls to LineTo methods will draw line segments originating from this position.

Method variants accept integer (Integer), 16.16 fixed-point (TFixed), or single-precision floating-point (Single) coordinates.

Variants ​

VariantCoordinate TypeDescription
MoveToIntegerSets current pen position using integer coordinates.
MoveToXTFixedSets current pen position using 16.16 fixed-point coordinates.
MoveToFSingleSets current pen position using single-precision floating-point coordinates.

Example ​

pascal
Bitmap.MoveTo(50, 50);
Bitmap.LineToS(150, 50);

See also ​