The FXScript Reference

For Final Cut Pro created by Joe Maller

BoundsOf

BoundsOf(image, result)

Related Links:
ColorTransform

Additional Notes

Quick way of measuring image size

BoundsOf simply measures an image buffer and returns its dimensions as a four-point polygon. This can be used instead of DimensionsOf, height and width can later be discovered through simple subtraction.

Use a pre-defined four-point array to hold the result:
point somepoly[4];

BoundsOf

Corners are referenced clockwise from the upper right as follows:

result[0] : Upper Left
result[1] : Upper Right
result[2] : Lower Right
result[3] : Lower Left