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

Clipping

Clipping with a Region

CombineMode

GetClipBounds Methods

Graphics

Graphics::GetClip

Graphics::IsClipEmpty

Graphics::ResetClip

IntersectClip Methods

TranslateClip Methods