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

◆ scale_transform() [2/2]

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

Applies the specified scaling operation to the transformation matrix of this xtd::drawing::graphics in the specified order.

Parameters
sxScale factor in the x direction.
syScale factor in the y direction.
orderMember of the xtd::drawing::drawing_2d::matrix_order enumeration that specifies whether the scaling operation is prepended or appended to the transformation matrix.
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.