GDIPLUS: how create a Bitmap with pixels?

how we create a Bitmap with a pixels variable?
the GdipCreateBitmapFromScan0() create a Bitmap and connect to an array pixels variable.
the GdipCreateBitmapFromGraphics()create a Bitmap, but no array pixels...
having a Graphics or a Bitmap... how can i get the pixels array variable?
What are you trying to do?

Did you see this:

https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-bitmap-flat

Maybe the GdipBitmapLockBits(...) is what you want.
thank you so much for all
Topic archived. No new replies allowed.