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

◆ is_visible() [2/16]

bool xtd::drawing::region::is_visible ( float  x,
float  y,
float  width,
float  height,
const xtd::drawing::graphics g 
) const
noexcept

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

Parameters
xThe x-coordinate of the upper-left corner of the rectangle to test.
yThe y-coordinate of the upper-left corner of the rectangle to test.
widthThe width of the rectangle to test.
heightThe height of the rectangle to test.
gA xtd::drawing::graphics that represents a graphics context.
Returns
true when any portion of the specified rectangle 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.