clip_segment_to_image
OverlayScreenSegment clip_segment_to_image(const OverlayScreenSegment &segment, Scalar width, Scalar height) noexceptParameters
| Name | Type |
|---|---|
segment | const OverlayScreenSegment & |
width | Scalar |
height | Scalar |
Returns
OverlayScreenSegment
The part inside the rectangle, or one marked not visible when none of it is.
Description
Trims a pixel segment to the part inside the image rectangle.
See also
engine/foundation/core/include/README.md

