TVectorMap.GetTrimmedBounds

function GetTrimmedBounds: TRect;

Description

Returns the smallest rectangle that surrounds non zero vectors in a vectormap. This is useful for optimizing heavy processing like supersampling by passing this rectangle as a clipping rectangle. Note that the procedure of analyzing a vectormap is rather expensive, thus carefully determine if the call is worth the cost.

See Also

Examples, Rectangle Types