System.Drawing.ScreenDC.Create C# (CSharp) 메소드

Create() 공개 정적인 메소드

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

Usage Example

예제 #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