Graphics::SetClip(constGraphics*,CombineMode) method (gdiplusgraphics.h)
The Graphics::SetClip method updates the clipping region of this Graphics object to a region that is the combination of itself and the clipping region of another Graphics object.
Syntax
Status SetClip(
const Graphics *g,
CombineMode combineMode
);
Parameters
g
Pointer to a Graphics object that contains the clipping region to be combined with the clipping region of this Graphics object.
combineMode
Element of the CombineMode enumeration that specifies how the specified region is combined with the clipping region of this Graphics object. The default value is CombineModeReplace.
Return value
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.
Requirements
Requirement | Value |
---|---|
Header | gdiplusgraphics.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for