ImageData.scaledTo

Returns a copy of the receiver which has been stretched or shrunk to the specified size. If either the width or height is negative, the resulting image will be inverted in the associated axis.

@param width the width of the new ImageData @param height the height of the new ImageData @return a scaled copy of the image

class ImageData
scaledTo
(
int width
,
int height
)

Meta