GDI doubt?alternative to SetPixel
IT & Infrastructure
1
Posts
1
Posters
0
Views
1
Watching
-
ive used GetDIBits to get the bitmaps images RGB data into a byte array so effectively i can modify the rgb values of the image by just modifying the bits in the byet array buffer. i tried creating a function SetPixelColor(LPBYTE imgBuf,int column,int row,DWORD dwColor) { } that is supposed to set the dwColor for pixel at row and column specified however im having problems in mapping the row and column to the 1D LPBYTE buffer please advice?? or is there any other alternative APIs