[]
Specifies a rectangle to which all subsequent drawing operations are clipped.
Clipping is applied only if containerRect
does not contain clipRect
.
The GcGraphics.Clip object returned by this method implements IDisposable, so this method can be used with the 'using' pattern:
using (g.PushClip(...)) ...
in which case the clipping region will be removed when the returned object is disposed.
public GcGraphics.Clip PushClip(RectangleF clipRect, RectangleF containerRect)
Public Function PushClip(clipRect As RectangleF, containerRect As RectangleF) As GcGraphics.Clip
Type | Name | Description |
---|---|---|
RectangleF | clipRect | The clipping rectangle. |
RectangleF | containerRect | The container rectangle. |
Type | Description |
---|---|
GcGraphics.Clip | The GcGraphics.Clip object that removes the clipping when disposed. |
Specifies a rectangle to which all subsequent drawing operations are clipped.
The GcGraphics.Clip object returned by this method implements IDisposable, so this method can be used with the 'using' pattern:
using (g.PushClip(...)) ...
in which case the clipping region will be removed when the returned object is disposed.
public GcGraphics.Clip PushClip(RectangleF? clipRect)
Public Function PushClip(clipRect As RectangleF?) As GcGraphics.Clip
Type | Name | Description |
---|---|---|
RectangleF? | clipRect | The clipping rectangle. If this parameter is null, this method does nothing and returns null. |
Type | Description |
---|---|
GcGraphics.Clip | The GcGraphics.Clip object that removes the clipping when disposed, or null. |
Specifies a rectangle to which all subsequent drawing operations are clipped.
The GcGraphics.Clip object returned by this method implements IDisposable, so this method can be used with the 'using' pattern:
using (g.PushClip(...)) ...
in which case the clipping region will be removed when the returned object is disposed.
public GcGraphics.Clip PushClip(RectangleF clipRect)
Public Function PushClip(clipRect As RectangleF) As GcGraphics.Clip
Type | Name | Description |
---|---|---|
RectangleF | clipRect | The clipping rectangle. |
Type | Description |
---|---|
GcGraphics.Clip | The GcGraphics.Clip object that removes the clipping when disposed. |
Specifies a path to which all subsequent drawing operations are clipped.
The GcGraphics.Clip object returned by this method implements IDisposable, so this method can be used with the 'using' pattern:
using (g.PushClip(...)) ...
in which case the clipping region will be removed when the returned object is disposed.
public GcGraphics.Clip PushClip(IPath clipPath)
Public Function PushClip(clipPath As IPath) As GcGraphics.Clip
Type | Description |
---|---|
GcGraphics.Clip | The GcGraphics.Clip object that removes the clipping when disposed. |
Specifies a clipping region to which all subsequent drawing operations are clipped.
public void PushClip(IClipRegion clipRegion)
Public Sub PushClip(clipRegion As IClipRegion)
Type | Name | Description |
---|---|---|
IClipRegion | clipRegion | The clipping region. |