[]
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)
| 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)
| 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)
| 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)
| Type | Name | Description |
|---|---|---|
| IPath | clipPath | The IPath object defining clipping area. |
| 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)
| Type | Name | Description |
|---|---|---|
| IClipRegion | clipRegion | The clipping region. |