scale method
Scales the current transformation matrix by the given factors.
Scaling is performed relative to the current origin (0,0) of the transformed coordinate system.
sx
: The scaling factor along the x-axis.sy
: The scaling factor along the y-axis.
Implementation
void scale(double sx, double sy) {
transform(sx, 0.0, 0.0, sy, 0.0, 0.0);
}