Exemplo n.º 1
0
 public void Dispose()
 {
     if (disposeDc && DeviceContext != null)
     {
         DeviceContext.Dispose();
     }
     DeviceContext = null;
 }
Exemplo n.º 2
0
            public static WindowsGraphics CreateMeasurementWindowsGraphics()
            {
                _DeviceContext  dc = _DeviceContext.FromCompatibleDC(IntPtr.Zero);
                WindowsGraphics wg = new WindowsGraphics(dc);

                wg.disposeDc = true; // we create it, we dispose it.

                return(wg);
            }
Exemplo n.º 3
0
 public WindowsGraphics(_DeviceContext dc = null)
 {
     this.DeviceContext = dc ?? _DeviceContext.FromCompatibleDC(IntPtr.Zero);
 }
Exemplo n.º 4
0
        public static _Size MeasureText(_DeviceContext context, string text, Font font)
        {
            _Size result = _Size.Empty;

            return(result);
        }