CanvasItem.scale

Scale an item on the canvas. Note that some items have only a single pair of coordinates (e.g., text, images and widgets) and so scaling of them by this command can only move them around.

class CanvasItem
scale
(
this T
)
(
double xOrigin
,
double yOrigin
,
double xPercent
,
double yPercent
)

Parameters

xOrigin double

The horizontal origin from which to perform the scale.

yOrigin double

The vertical origin from which to perform the scale.

xPercent double

The amount to scale horizontally.

yPercent double

The amount to scale vertically.

Return Value

Type: auto

This widget to aid method chaining.

Meta