//docs/MPImage.doc/RescaleMPImage
NAME
RescaleMPImage -- Scales an image created by LoadMPImage() (V3)
SYNOPSIS
error = RescaleMPImage(MPi, x, y)
D0 A0 D0 D1
BOOL RescaleMPImage(struct MPImage *, UWORD, UWORD);
FUNCTION
Scales an Image loaded by LoadMPImage() to new width and height.
INPUTS
MPi - Image loaded by LoadMPImage
x - New width of image
y - New height of image
RESULT
error - 1 for success, 0 for failure.
Use MPImageErrorMessage() to get error.
EXAMPLE
NOTES
Rescaling of bitmaps is done using BitMapScale().
Other rescaling is done using custom code with smoothing.
If this function fails then the MPImage is no longer usable and
FreeMPImage() should be called to free it.
Version 4.3 is faster for RGB.
BUGS
Bitmaps may not scale smoothly.
The rescaling of EGS images is not efficent.
SEE ALSO
LoadMPImage(),MPImageErrorMessage(),FreeMPImage(),
graphics.library/BitMapScale().