How can I get a jpeg picture's array of pixels by using GDI+?
-
Use Bitmap::GetHBITMAP() then call GetObject() with the handle that's returned. Use this to get the dimensions and then call GetBitmapBits() using an array of the correct size. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
-
Use Bitmap::GetHBITMAP() then call GetObject() with the handle that's returned. Use this to get the dimensions and then call GetBitmapBits() using an array of the correct size. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
-
Joe Woodbury: I have used the method that you said,but I can't display the picture by using opel glDrawPixels(). why?
I have no idea. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke