xtd 0.2.0
Loading...
Searching...
No Matches

◆ scale_transform() [1/2]

void xtd::drawing::graphics::scale_transform ( float  sx,
float  sy 
)

Applies the specified scaling operation to the transformation matrix of this xtd::drawing::graphics by prepending it to the object's transformation matrix.

Parameters
sxScale factor in the x direction.
syScale factor in the y direction.
Remarks
The scaling operation consists of multiplying the transformation matrix by a diagonal matrix whose elements are (sx, sy, 1). This method prepends the transformation matrix of the xtd::drawing::graphics by the scaling matrix.