Exemple #1
0
        public WindowsPen(DeviceContext dc, WindowsPenStyle style, int width, WindowsBrush windowsBrush)
        {
            Debug.Assert(windowsBrush != null, "null windowsBrush");

            this.style    = style;
            this.wndBrush = (WindowsBrush)windowsBrush.Clone();
            this.width    = width;
            this.color    = windowsBrush.Color;
            this.dc       = dc;

            // CreatePen() created on demand.
        }
Exemple #2
0
 public object Clone()
 {
     return((wndBrush != null) ?
            new WindowsPen(dc, style, width, (WindowsBrush)wndBrush.Clone()) :
            new WindowsPen(dc, style, width, color));
 }
Exemple #3
0
 public WindowsPen(DeviceContext dc, WindowsPenStyle style, int width, WindowsBrush windowsBrush )
 {
     Debug.Assert(windowsBrush != null, "null windowsBrush" );
     
     this.style    = style;
     this.wndBrush = (WindowsBrush) windowsBrush.Clone();
     this.width    = width;
     this.color    = windowsBrush.Color;
     this.dc       = dc;
     
     // CreatePen() created on demand.
 }