Understanding bmp image files

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Apr 2 14:02:18 EDT 2008


On Wed, 02 Apr 2008 10:51:39 -0700, pranav wrote:

> I want to read a BMP file, do some processing and then write it in a
> new file. The problem is in the third step. For reading the file, i
> have converted the file into decimal numbers, representing the pixel
> values.

You have converted the data into numbers, not "decimal" numbers.

> Then i perform calculations on those decimal numbers. Now i am
> unable to convert those into the format as required by the "bmp" file.
> Any one, who is into image reading/manipulation, please help.

How have you converted the bytes into numbers and why can't you reverse
that step?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list