System.Drawing.ScreenDC.Create C# (CSharp) Method

Create() public static method

public static Create ( ) : ScreenDC
return ScreenDC
        public static ScreenDC Create() => new ScreenDC
        {
            _handle = Interop.User32.GetDC(IntPtr.Zero)
        };

Usage Example

Beispiel #1
0
 internal static Font FromLogFont(ref Interop.User32.LOGFONT logFont)
 {
     using (ScreenDC dc = ScreenDC.Create())
     {
         return(FromLogFont(logFont, dc));
     }
 }
All Usage Examples Of System.Drawing.ScreenDC::Create