2002.04.17 07:13 "to transform a tiff file into a bitmap object..", by Yasmina Elotmani

Good afternoon,

I hope you can help me to resolv my problem.

In one of my programs, I have to transform a tiff file into a bitmap object. The transformation requires the creation of an intermediate object, a bitmapdata object.

This creation is done pixel by pixel: it means that for every pixel from the tiff file, we create a structure of 4 Bytes to store pixel informations.

  1. How can I proceed in the aim to reduce the strucutre into one byte ?
  2. How can I read a tiff file line by line of pixels or bloc by bloc of pixels ?( how using scanline)

Thank you
have a nice day

Yasmina ELOTMANI
Engineer student in the third year of TELECOM department
In a training period at UNILOG TEC
Avenue du vieux chêne 38240 MEYLAN FRANCE