get the array of bytes of a bitmap?

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

  1. xara

    xara New Member

    Joined:
    Dec 3, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice