1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

get the array of bytes of a bitmap?

Discussion in 'MFC' started by xara, Jan 2, 2008.

  1. xara

    xara New Member

    Dec 3, 2007
    Likes Received:
    Trophy Points:

    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,


Share This Page