Associating System.Drawing.Graphics with a device context?
-
24-09-2019 - |
문제
Is there a way of attaching a System.Drawing.Graphics class to a device context (HDC) for another window which was retrieved via GetDC API function? It is easier than using GDI+ directly.
해결책
From MSDN:
Graphics.FromHdc Method
Creates a new Graphics from the specified handle to a device context.
제휴하지 않습니다 StackOverflow