Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   get the array of bytes of a bitmap? (http://www.go4expert.com/forums/array-bytes-bitmap-t8080/)

xara 2Jan2008 19:35

get the array of bytes of a bitmap?
 
Hello,

I am trying to get the array of bytes of a Bitmap. I am developing in eMbedded Visual C++ for mobile devices. I load the image (jpg image) from a file into a HBITMAP with the function "SHLoadImageFile". So I have a CBitmap or BITMAP in order to get the array of bytes. I need a function that will work for Windows CE because the function "GetDIBits" is not supported.

I tried to do it with some functions like "CreateDIBSection" or "GetPixel", but neither of them works as I expected. It is also possible that I have used them it in a bad way so any help will be welcome.

Thanks in advance,

Xara


All times are GMT +5.5. The time now is 06:28.