コード例 #1
0
 private unsafe static Gdi32.HDC CreateEnhMetaFile(
     Gdi32.HDC hdc     = default,
     string?lpFilename = null,
     RECT *lprc        = null,
     string?lpDesc     = null)
 {
     Gdi32.HDC metafileHdc = Gdi32.CreateEnhMetaFileW(hdc, lpFilename, lprc, lpDesc);
     if (metafileHdc.IsNull)
     {
         throw new Win32Exception("Could not create metafile");
     }
     return(metafileHdc);
 }