Sign in to follow this  
Followers 0
Andreik

Pixels from BMP file

1 post in this topic

I have a picture with BMP extension. The picture is only with 2 colors (black and white). Dimensions of picture is 500x350.

I want to create an array (bidimesional array) that contain color of picture from X coordinate and Y coordinate.

Ex. Array[54][64] = 0x000000

Array[12][75] = 0xFFFFFF

Point from X coordinate 54 and Y coordinate 64 is black.

Point from X coordinate 12 and Y coordinate 75 is white.

My question is how can I get color from picture?


When the words fail... music speaks

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0