Method Scale
Scale(float)
Scales the current size of the image by the specified scale factor. If scale factor is less than 1, the image will be scaled down; if it is greater than 1, the image will be scaled up.
public virtual bool Scale(float scaleFactor)
Parameters
scaleFactorfloatThe factor by which to scale the width and height. Must be a positive value.
Returns
- bool
true if the size was successfully scaled; otherwise, false.
Remarks
If the object is immutable, the size will not be changed and the method returns false.