Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-06

Patch for fpreadpnm

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Colin Western

The attach fixes two problems I found reading pnm files:
- RGB files were not being read correctly
- byte values of 255 were overflowing.
I have adjusted the colour scaling to be compatible with what happens for .BMP files. I have not been able to do much testing, as I am short of files to test, but it works for the file I originally had problems

Reply by email

Michael Van Canneyt
to Colin Western
Colin Western wrote 7 lines
The attach fixes two problems I found reading pnm files: - RGB files were not being read correctly - byte values of 255 were overflowing. I have adjusted the colour scaling to be compatible with what happens for .BMP files. I have not been able to do much testing, as I am short of files to test, but it works for the file I originally had problems with at least. Colin

Thank you. I committed the patch; It seems correct.

Michael.

Reply by email