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.

Was it helpful?

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
scroll top