Пример #1
0
        // 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);
        }
Пример #2
0
        // 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;
        }
Пример #3
0
 // Select this brush into a graphics object.
 public override void Select(IToolkitGraphics graphics)
 {
     // TODO: need to handle the XOR property.
     innerBrush.Select(graphics);
 }
Пример #4
0
	// 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);
			}