Can I mix GDI and GDI+ drawing in my application?

Platform: WinForms| Category: from GDI

You can mix GDI and GDI+ drawing operations in the same code path. The article INFO: Interoperability Between GDI and GDI+ (Q311221) discusses some caveats to keep in mind when you are writing code that allows GDI and GDI+ to interoperate.

See also the FAQ ‘How to create my own hatch styles for brushes’ for an example how to use GDI bitmaps with GDI+.

The most prominent functions for mixing GDI and GDI+ are the GetHdc and ReleaseHdc methods of the Graphics class.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.