PictureEffectsRaw Xojo Plugin

ShapeDistortEffectRaw.MapPoint Method (console safe)

Maps a point from a destination image of given size to location in the source image.

MapPoint(
   width as UInt32,
   height as UInt32,
   polygonShape as PolygonF,
   x as UInt32,
   y as UInt32) as PointF

Parameters

width
Width of the destination RawBitmap
height
Height of the destination 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.
x
The x coordinate of the point to map.
y
The y coordinate of the point to map.

Returns

PointF
The mapped point

Remarks

See Also

ShapeDistortEffectRaw Class