Here are the examples of the csharp api class System.Drawing.Region.Exclude(System.Drawing.Drawing2D.GraphicsPath) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
18 Examples
0
1. Example
Project: tesvsnip
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!r.Contains(olv.PointToClient(Cursor.Position))) return; Rectangle bounds = RowBounds; if (bounds.IsEmpty) { if (olv.View == View.Tile) g.FillRectangle(FillBrush, r); return; } using (var newClip = new Region(r)) { bounds.Inflate(BoundsPadding); newClip.Exclude(GetRoundedRect(bounds, CornerRounding)); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(FillBrush, r); g.Clip = originalClip; } }
0
2. Example
Project: falloutsnip
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!r.Contains(olv.PointToClient(Cursor.Position))) return; Rectangle bounds = RowBounds; if (bounds.IsEmpty) { if (olv.View == View.Tile) g.FillRectangle(FillBrush, r); return; } using (var newClip = new Region(r)) { bounds.Inflate(BoundsPadding); newClip.Exclude(GetRoundedRect(bounds, CornerRounding)); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(FillBrush, r); g.Clip = originalClip; } }
0
3. Example
Project: logwizard
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!r.Contains(olv.PointToClient(Cursor.Position))) return; Rectangle bounds = this.RowBounds; if (bounds.IsEmpty) { if (olv.View == View.Tile) g.FillRectangle(this.FillBrush, r); return; } using (Region newClip = new Region(r)) { bounds.Inflate(this.BoundsPadding); newClip.Exclude(this.GetRoundedRect(bounds, this.CornerRounding)); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(this.FillBrush, r); g.Clip = originalClip; } }
0
4. Example
Project: SquareOne
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!r.Contains(olv.PointToClient(Cursor.Position))) return; Rectangle bounds = this.RowBounds; if (bounds.IsEmpty) { if (olv.View == View.Tile) g.FillRectangle(this.FillBrush, r); return; } using (Region newClip = new Region(r)) { bounds.Inflate(this.BoundsPadding); newClip.Exclude(this.GetRoundedRect(bounds, this.CornerRounding)); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(this.FillBrush, r); g.Clip = originalClip; } }
0
5. Example
Project: tesvsnip
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!olv.IsCellEditing) return; Rectangle bounds = olv.CellEditor.Bounds; if (bounds.IsEmpty) return; bounds.Inflate(BoundsPadding); GraphicsPath path = GetRoundedRect(bounds, CornerRounding); if (FillBrush != null) { if (UseLightbox) { using (var newClip = new Region(r)) { newClip.Exclude(path); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(FillBrush, r); g.Clip = originalClip; } } else { g.FillPath(FillBrush, path); } } if (BorderPen != null) g.DrawPath(BorderPen, path); }
0
6. Example
Project: falloutsnip
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!olv.IsCellEditing) return; Rectangle bounds = olv.CellEditor.Bounds; if (bounds.IsEmpty) return; bounds.Inflate(BoundsPadding); GraphicsPath path = GetRoundedRect(bounds, CornerRounding); if (FillBrush != null) { if (UseLightbox) { using (var newClip = new Region(r)) { newClip.Exclude(path); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(FillBrush, r); g.Clip = originalClip; } } else { g.FillPath(FillBrush, path); } } if (BorderPen != null) g.DrawPath(BorderPen, path); }
0
7. Example
Project: MapViewer
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!olv.IsCellEditing) return; Rectangle bounds = olv.CellEditor.Bounds; if (bounds.IsEmpty) return; bounds.Inflate(this.BoundsPadding); GraphicsPath path = this.GetRoundedRect(bounds, this.CornerRounding); if (this.FillBrush != null) { if (this.UseLightbox) { using (Region newClip = new Region(r)) { newClip.Exclude(path); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(this.FillBrush, r); g.Clip = originalClip; } } else { g.FillPath(this.FillBrush, path); } } if (this.BorderPen != null) g.DrawPath(this.BorderPen, path); }
0
8. Example
Project: MapViewer
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!r.Contains(olv.PointToClient(Cursor.Position))) return; Rectangle bounds = this.RowBounds; if (bounds.IsEmpty) { if (olv.View == View.Tile) g.FillRectangle(this.FillBrush, r); return; } using (Region newClip = new Region(r)) { bounds.Inflate(this.BoundsPadding); newClip.Exclude(this.GetRoundedRect(bounds, this.CornerRounding)); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(this.FillBrush, r); g.Clip = originalClip; } }
0
9. Example
Project: logwizard
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!olv.IsCellEditing) return; Rectangle bounds = olv.CellEditor.Bounds; if (bounds.IsEmpty) return; bounds.Inflate(this.BoundsPadding); GraphicsPath path = this.GetRoundedRect(bounds, this.CornerRounding); if (this.FillBrush != null) { if (this.UseLightbox) { using (Region newClip = new Region(r)) { newClip.Exclude(path); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(this.FillBrush, r); g.Clip = originalClip; } } else { g.FillPath(this.FillBrush, path); } } if (this.BorderPen != null) g.DrawPath(this.BorderPen, path); }
0
10. Example
Project: AnotherSc2Hack
Source File: AlertRenderer.cs
Source File: AlertRenderer.cs
protected override void Draw(BufferedGraphics g) { var fPenWidth = 3f; /n ..... /n //View Source file for more details /n }
0
11. Example
Project: SquareOne
Source File: Decorations.cs
Source File: Decorations.cs
public override void Draw(ObjectListView olv, Graphics g, Rectangle r) { if (!olv.IsCellEditing) return; Rectangle bounds = olv.CellEditor.Bounds; if (bounds.IsEmpty) return; bounds.Inflate(this.BoundsPadding); GraphicsPath path = this.GetRoundedRect(bounds, this.CornerRounding); if (this.FillBrush != null) { if (this.UseLightbox) { using (Region newClip = new Region(r)) { newClip.Exclude(path); Region originalClip = g.Clip; g.Clip = newClip; g.FillRectangle(this.FillBrush, r); g.Clip = originalClip; } } else { g.FillPath(this.FillBrush, path); } } if (this.BorderPen != null) g.DrawPath(this.BorderPen, path); }
0
12. Example
Project: PKHeX
Source File: QRCode.cs
Source File: QRCode.cs
public Bitmap GetGraphic(int pixelsPerModule, Color darkColor, Color lightColor, Bitmap icon=null, i/n ..... /n //View Source file for more details /n }
0
13. Example
Project: MysteryGiftTool
Source File: QRCode.cs
Source File: QRCode.cs
public Bitmap GetGraphic(int pixelsPerModule, Color darkColor, Color lightColor, Bitmap icon=null, i/n ..... /n //View Source file for more details /n }
0
14. Example
Project: QRCoder
Source File: QRCode.cs
Source File: QRCode.cs
public Bitmap GetGraphic(int pixelsPerModule, Color darkColor, Color lightColor, Bitmap icon=null, i/n ..... /n //View Source file for more details /n }
0
15. Example
Project: duality
Source File: AutoTileTilesetEditorMode.cs
Source File: AutoTileTilesetEditorMode.cs
private void TilesetView_PaintTiles(object sender, TilesetViewPaintTilesEventArgs e) { Color hi/n ..... /n //View Source file for more details /n }
0
16. Example
Project: Baka-MPlayer-old
Source File: ColorSlider.cs
Source File: ColorSlider.cs
private void DrawColorSlider(PaintEventArgs e, Color thumbFirstColorPaint, Color thumbSecondColorPai/n ..... /n //View Source file for more details /n }
0
17. Example
Project: LaserGRBL
Source File: ColorSlider.cs
Source File: ColorSlider.cs
private void DrawColorSlider(PaintEventArgs e, Color thumbOuterColorPaint, Color thumbInnerColorPain/n ..... /n //View Source file for more details /n }
0
18. Example
Project: Repetier-Host
Source File: ColorSlider.cs
Source File: ColorSlider.cs
private void DrawColorSlider(PaintEventArgs e, Color thumbOuterColorPaint, Color thumbInnerColorPain/n ..... /n //View Source file for more details /n }