Home > Back-end >  GDI, Bitmap
GDI, Bitmap

Time:10-20

Bitmap: : Bitmap (INT width, INT height, PixelFormat format).
After using the constructor initializes, how to add pixels in subsequent data? SetPixel (calculate)

CodePudding user response:

CreateDIBitmap?

CodePudding user response:

After the Bitmap: : LockBits lock after modification, Bitmap: : UnlockBits
https://docs.microsoft.com/en-us/windows/win32/api/gdiplusheaders/nf-gdiplusheaders-bitmap-lockbits