Is Gdiplus thread safe?

I looked through the MSDN documentation and I could not find the expression anyway. I'm interested in:

  • Is it possible to call GdiplusStartup () in one thread and then use Gdiplus in another thread? Or do I need to call GdiplusStartup () for each thread?
  • If I have a Bitmap object in thread 1 and another in thread 2, can they call Bitmap :: DrawImage () at the same time at the same time or do I need to add a lock to ensure serialization?

Thanks.

+3
source share
2 answers

MSDN : " GdiplusStartup GdiplusShutdown ", , GdiplusStartup() ( ).

2. ( , , Graphics:: DrawImage (bitmap)?) Graphics , ? .

+3

2, MSDN - : GDI +:

GDI + . GDI + . , GDI + , .

GDI + ObjectBusy, . ObjectBusy. , , .

+5

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


All Articles