6

How can I convert a bitmap to a byte array in c++ WITHOUT the .net framework?

2 Answers 2

5

If you’re using Windows, you can use GetDIBits to retrieve the bitmap data.

Sign up to request clarification or add additional context in comments.

Comments

0

If your bitmap is a device independent bitmap, you can access the pixel data using GetObject and passing in a BITMAP. This avoids making a copy of the pixel data.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.