Resize(Width, Height)

Sets the dimensions of the image.

The image is scaled to the specified size (which doesn't happen if you use the ImageHeight and ImageWidth properties). Do not set the ImageHeight and ImageWidth properties in the same block, as they override the value set by this method.

Parameters
  • Width. Integer.
  • Height. Integer.
Examples
Copy
Graphic.Resize(150,100);