// Select a brush-based pen into a graphics object. public override void Select(IToolkitGraphics graphics, IToolkitBrush brush) { // Set the basic line information first. Select(graphics); // Select the brush details into the graphics context. brush.Select(graphics); }
// Select this brush into a graphics object. public override void Select(IToolkitGraphics _graphics) { innerBrush.Select(_graphics); DrawingGraphics graphics = (_graphics as DrawingGraphics); if (graphics != null) { Xsharp.Graphics g = graphics.graphics; g.Function = GCFunction.GXxor; g.SubwindowMode = SubwindowMode.IncludeInferiors; } graphics.Brush = this; }
// Select this brush into a graphics object. public override void Select(IToolkitGraphics graphics) { // TODO: need to handle the XOR property. innerBrush.Select(graphics); }