Can two DC servers share a single GDI object (brush, pen, etc.)?

Can two device contexts (DCs) share a single GDI object, such as a brush or pen?

+3
source share
1 answer

The documentation for SelectObject mentions that bitmaps cannot be selected more than one DC at a time.

This is essentially due to the fact that GDI operations can be written to a bitmap image, and it would be difficult to manage multiple write operations at a time. However, all other GDI objects created after creation (with the exception of regions, but always copied) are immutable, therefore, there are no restrictions on the simultaneous allocation of several domain controllers.

+5
source

Source: https://habr.com/ru/post/1777927/


All Articles