コード例 #1
0
        // Construction/destruction API

        /// <include file='doc\WindowsGraphics.uex' path='docs/doc[@for="WindowsGraphics.WindowsGraphics"]/*' />
        public WindowsGraphics(DeviceContext dc)
        {
            Debug.Assert(dc != null, "null dc!");
            _dc = dc;
            _dc.SaveHdc();
            //this.disposeDc = false; // the dc is not owned by this object.
        }
コード例 #2
0
 public WindowsGraphics(DeviceContext dc)
 {
     Debug.Assert(dc != null, "null dc!");
     _dc = dc;
     _dc.SaveHdc();
 }