public WindowsPen(DeviceContext dc, WindowsPenStyle style, int width, WindowsBrush windowsBrush)
 {
     this.style    = style;
     this.wndBrush = (WindowsBrush)windowsBrush.Clone();
     this.width    = width;
     this.color    = windowsBrush.Color;
     this.dc       = dc;
 }
 public WindowsPen(DeviceContext dc, WindowsPenStyle style, int width, WindowsBrush windowsBrush)
 {
     this.style = style;
     this.wndBrush = (WindowsBrush) windowsBrush.Clone();
     this.width = width;
     this.color = windowsBrush.Color;
     this.dc = dc;
 }
Example #3
0
        public WindowsPen(DeviceContext dc, Gdi32.PS style, int width, WindowsBrush windowsBrush)
        {
            Debug.Assert(windowsBrush != null, "null windowsBrush");

            _style    = style;
            _wndBrush = (WindowsBrush)windowsBrush.Clone();
            _width    = width;
            _color    = windowsBrush.Color;
            _dc       = dc;
        }
Example #4
0
        public WindowsPen(DeviceContext dc, WindowsPenStyle style, int width, WindowsBrush windowsBrush)
        {
            Debug.Assert(windowsBrush != null, "null windowsBrush");

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

            // CreatePen() created on demand.
        }
Example #5
0
 public object Clone()
 {
     return((_wndBrush != null) ?
            new WindowsPen(_dc, _style, _width, (WindowsBrush)_wndBrush.Clone()) :
            new WindowsPen(_dc, _style, _width, _color));
 }
Example #6
0
 public object Clone()
 {
     return((wndBrush != null) ?
            new WindowsPen(dc, style, width, (WindowsBrush)wndBrush.Clone()) :
            new WindowsPen(dc, style, width, color));
 }