If I know bitmap pixels' value e.g(RGB), how can I attach them with the function CreateBitmap()
I don't know how can I build such relationship between lpvBits and my pixels' value or is there any other way out? Thanks for the help.
int nWidth, // bitmap width, in pixels
int nHeight, // bitmap height, in pixels
UINT cPlanes, // number of color planes
UINT cBitsPerPel, // number of bits to identify color
CONST VOID *lpvBits // color data array
Read/Study this article: DIBs and Their Use.
Thanks, I've read through this article before, but I don't have any idea about this, can you make any simple example in case of my question? Thanks