windows - Can two DCs share one GDI object (brush, pen, etc.)? -


can 2 device contexts (dcs) share 1 gdi object, such brush or pen?

the documentation selectobject mentions bitmaps cannot selected more 1 dc @ time.

essentially because gdi operations can write bitmap, , complex manage multiple write operations @ time. other gdi objects, once created (with exception of regions - copied), immutable, therefore have no restrictions on being selected multiple dcs @ time.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -