laziness, impatience, and hubris | |
PerlMonks |
Re^2: BMP file manipulationby MadraghRua (Vicar) |
on Aug 25, 2008 at 23:43 UTC ( [id://706804]=note: print w/replies, xml ) | Need Help?? |
Dear Tachyon Thank you for your very helpful example. I am trying to adapt it my own needs and I am struggling with parts 4 and 5 in your example.
I am working with images that are 1024 high x 1280 wide using 8 bit grey scale to represent each color. So for instance I have used the following to get the color table: Secondly I don't understand how to extract the data lines for the image. So my offset is 1078 bits. According to your calculation, and using an 8 bit pixel assignment, I need to capture 10242 bytes per line for my bit maps. How do I set this for unpack? Thank you for taking the time to answer my questions.
MadraghRua
In Section
Seekers of Perl Wisdom
|
|