Author image Yuki Kimoto
and 1 contributors

NAME

Image::PNG::Simple - Convert bitmap file to png file without C library dependency.

CAUTION

This is beta release. API will be changed without warnings.

SYNOPSIS

  use Image::PNG::Simple;
  
  # Create Image::PNG::Simple object
  my $ips = Image::PNG::Simple->new;
  
  # Read bitmap file
  $ips->read_bmp_file('dog.bmp');
  
  # Write png file
  $ips->write_png_file('dog.png');

DESCRIPTION

Convert bitmap file to png file without C library dependency.

METHODS

new

  my $ips = Image::PNG::Simple->new;

Create new Image::PNG::Simple object.

read_bmp_file

  $ips->read_bmp_file('dog.bmp');

Read bitmap file.

parse_bmp_data

  $ips->parse_bmp_data($bmp_data);

Prase bitmap binary data.

get_bmp_data

  $ips->get_bmp_data;

Get bitmap binary data.

get_png_data

  $ips->get_png_data;
  

Get png binary data.

write_bmp_file

  $ips->write_bmp_file('dog_copy.bmp');

Write bitmap file.

write_png_file

  $ips->write_png_file('dog.png');

Write png file.

INTERNAL

This module internally use libpng-1.6.17 and zlib-1.2.8. So This module license follow Perl license, libpng license and zlib license.

SEE ALSO

Image::PNG, Imager::File::PNG, Image::PNG::Libpng

AUTHOR

Yuki Kimoto <kimoto.yuki@gmail.com>

REPOSITORY and BUG REPORT

Tell me on Github Repository

https://github.com/yuki-kimoto/Image-PNG-Simple

COPYRIGHT AND LICENSE

Copyright (C) 2015 by Yuki Kimoto

This library is free software; you can redistribute it and/or modify it under the same terms as Perl, libpng, and zlib itself, either Perl version 5.16.3 or, at your option, any later version of Perl 5 you may have available.