Example #1
0
 public Lite_Graphics(IntPtr handle, GraphicsInit initType)
 {
     switch (initType)
     {
         case GraphicsInit.FromHdc:
             this.g = Graphics.FromHdc(handle);
             break;
         case GraphicsInit.FromHdcInternal:
             this.g = Graphics.FromHdcInternal(handle);
             break;
         case GraphicsInit.FromHwnd:
             this.g = Graphics.FromHwnd(handle);
             break;
         case GraphicsInit.FromHwndInternal:
             this.g = Graphics.FromHwndInternal(handle);
             break;
     }
 }
Example #2
0
        public Lite_Graphics(IntPtr handle, GraphicsInit initType)
        {
            switch (initType)
            {
            case GraphicsInit.FromHdc:
                this.g = Graphics.FromHdc(handle);
                break;

            case GraphicsInit.FromHdcInternal:
                this.g = Graphics.FromHdcInternal(handle);
                break;

            case GraphicsInit.FromHwnd:
                this.g = Graphics.FromHwnd(handle);
                break;

            case GraphicsInit.FromHwndInternal:
                this.g = Graphics.FromHwndInternal(handle);
                break;
            }
        }