Sign in to follow this  
Followers 0
Kilhian

how to get each pixel of a picture to an array ?

3 posts in this topic

Hi,

I'm trying to load a bmp file to a handle, recording each pixel of the bmp in an array, doing some modifications, and record the modification to bmp file...

everything must be done without displaying the picture...

help me pls...

Share this post


Link to post
Share on other sites



Hi,

I'm trying to load a bmp file to a handle, recording each pixel of the bmp in an array.

Have a look at the pretty simple file format of .BMP and read your file directly to an array.

e.g. here: http://en.wikipedia.org/wiki/BMP_file_format

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Hi,

I'm trying to load a bmp file to a handle, recording each pixel of the bmp in an array, doing some modifications, and record the modification to bmp file...

everything must be done without displaying the picture...

help me pls...

I've been trying to figure that out myself, with no luck so far...

Using GDI+ Include is the most likely way to go ime.

Post back if figure something out, cheers.

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