Data::ParseBinary::Graphics::BMP
use Data::ParseBinary::Graphics::BMP qw{$bmp_parser}; my $data = $bmp_parser->parse(CreateStreamReader(File => $fh));
Can parse / build any BMP file, (1, 4, 8 or 24 bit) as long as RLE is not used.
This is a part of the Data::ParseBinary package, and is just one ready-made parser. please go to the main page for additional usage info.
To install Data::ParseBinary, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::ParseBinary
CPAN shell
perl -MCPAN -e shell install Data::ParseBinary
For more information on module installation, please visit the detailed CPAN module installation guide.