PictureEffectsRaw Xojo Plugin

ShapeDistortEffectRaw.Apply Method (console safe)

Applies the effect on a RawBitmap image with parameters that have been set on the class instance, taking also the polygon as parameter.

Apply(
   source as RawBitmap,
   polygonShape as PolygonF) as RawBitmap

Parameters

source
The source image as RawBitmap
polygonShape
A 4 point polygon that defines the pictures new shape. Note that if you got inward angles then you will sort of see under the image as if it was 3D object. The order of points should be Top left, top right, bottom right, bottom left.

Returns

RawBitmap
The distorted result RawBitmap or nil if there was error.

Remarks

See Also

ShapeDistortEffectRaw Class