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

◆ is_visible() [3/16]

bool xtd::drawing::region::is_visible ( const xtd::drawing::rectangle rect,
const xtd::drawing::graphics g 
) const
noexcept

Tests whether any portion of the specified xtd::drawing::rectangle structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.

Parameters
rectThe xtd::drawing::rectangle structure to test.
gA xtd::drawing::graphics that represents a graphics context.
Returns
true when any portion of the rect is contained within this xtd::drawing::region; otherwise, false.
Remarks
The current transformation of the graphics context is used to compute the region interior and the rectangle coordinates on the drawing surface.