System.Drawing.ScreenDC.Create C# (CSharp) Méthode

Create() public static méthode

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

Usage Example

Exemple #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