Associating System.Drawing.Graphics with a device context?
-
24-09-2019 - |
Question
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.
Solution
From MSDN:
Graphics.FromHdc Method
Creates a new Graphics from the specified handle to a device context.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow