BoundsOf
BoundsOf(image, result)
Additional Notes
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
BoundsOf(image, result)
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
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];