Category "gdi"

How to fill text with 2 different color/texture

I draw text on top of a image using Path.Addstring and filling it with a color and it works perfectly. Now I would like to split(bisect) the text vertically and

How to the width of an existing GDI Pen?

I am working on legacy code that relies on GDI (not GDI+) for drawing. GDI has no provision for variable width pens and you need to create/destroy new ones ever

What's the upper limit on GDI objects for one process in Windows 7?

Have an application with a GDI leak that will eventually hit 10,000 allocated GDI objects and crash. I tried increasing the GDIProcessHandleQuota to 20,000, bu