Syntax
ImgGetContentBounds(Img, *Bounds.RECT)Description
Retrieves the bounding rectangle of the actual non-transparent content within the image.
Parameters
Img
The handle of the ProGUI image object.
*Bounds.RECT
A pointer to a RECT structure that will be populated with
the calculated bounds (left, top, right, bottom).
Return Value
This command does not return a value. The result is placed directly
into the provided RECT structure.
Remarks
This function is useful for determining the tightly cropped area of a graphic, which is used internally by commands like ImgTrim().
See Also
ImgTrim, ImgGetWidth, ImgGetHeight
Supported OS
Windows, Linux