Contents

SushiEngine

clip_segment_to_image

OverlayScreenSegment clip_segment_to_image(const OverlayScreenSegment &segment, Scalar width, Scalar height) noexcept

Parameters

NameType
segmentconst OverlayScreenSegment &
widthScalar
heightScalar

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