xtd 0.2.0
Loading...
Searching...
No Matches

◆ clip() [1/2]

xtd::drawing::region xtd::drawing::graphics::clip ( ) const
noexcept

Gets a xtd::drawing::region that limits the drawing region of this xtd::drawing::graphics.

Returns
A xtd::drawing::region that limits the portion of this xtd::drawing::graphics that is currently available for drawing.
Remarks
Modifying the xtd::drawing::region object returned by the xtd::drawing::graphics::clip property does not affect subsequent drawing with the xtd::drawing::graphics object. To change the clip region, replace the xtd::drawing::graphics::clip property value with a new xtd::drawing::region object. To determine whether the clipping region is infinite, retrieve the xtd::drawing::graphics::clip property and call its xtd::drawing::region::is_infinite method.