Graphics.ExcludeClip(const Region*) method
Applies to: desktop apps only
The Graphics::ExcludeClip method updates the clipping region with the portion of itself that does not overlap the specified region.
Syntax
Status ExcludeClip(
[in] const Region *region
);
Parameters
region [in]
Type: const Region*Pointer to the region to use to update the clipping region.
Return value
Type:
Type: Status****
If the method succeeds, it returns Ok, which is an element of the Status enumeration.
If the method fails, it returns one of the other elements of the Status enumeration.
Examples
The following example uses a rectangle to update a clipping region and then draws a rectangle that demonstrates the updated clipping region.
VOID Example_ExcludeClip3(HDC hdc)
{
Graphics graphics(hdc);
// Create a Region object, and set the clipping region to its exclusion.
Region excludeRegion(Rect(100, 100, 200, 200));
graphics.ExcludeClip(&excludeRegion);
// Fill a rectangle to demonstrate the clipping region.
graphics.FillRectangle(&SolidBrush((255, 0, 0, 255)), 0, 0, 600, 600);
}
Requirements
Minimum supported client |
Windows XP, Windows 2000 Professional |
Minimum supported server |
Windows 2000 Server |
Product |
GDI+ 1.0 |
Header |
Gdiplusgraphics.h (include Gdiplus.h) |
Library |
Gdiplus.lib |
DLL |
Gdiplus.dll |
See also
Send comments about this topic to Microsoft
Build date: 3/6/2012