int ok = TransformImage(APTR handle, struct hwMatrix2D *m, int width, int height);
TransformImage()
, Hollywood will then call your plugin's
GetImage() function again to obtain the raw pixel data of the newly transformed
image. It is very important that the dimensions and the pixel array returned by the next call
to GetImage() match the dimensions passed to TransformImage()
in parameters 3
and 4 exactly.
TransformImage()
is only ever called for images of type HWIMAGETYPE_VECTOR
. If
your LoadImage() function sets the image type to HWIMAGETYPE_RASTER
,
TransformImage()
won't be called at all and Hollywood will do all image transformations on
its own.
If the transformation was successful, TransformImage()
must return True
. Otherwise it has
to return False
.
True
or False
indicating success or failure