Wx::Perl::Imagick

Wx::Perl::Imagick is a drop-in replacement for Wx::Image with all functionality of Image::Magick.
Download

Wx::Perl::Imagick Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jouke Visser
  • Publisher web site:
  • http://search.cpan.org/~jouke/Wx-Perl-Imagick-0.02/lib/Wx/Perl/Imagick.pm

Wx::Perl::Imagick Tags


Wx::Perl::Imagick Description

Wx::Perl::Imagick is a drop-in replacement for Wx::Image with all functionality of Image::Magick. Wx::Perl::Imagick is a drop-in replacement for Wx::Image with all functionality of Image::Magick.SYNOPSIS ^ use Wx::Perl::Imagick; # Load an imagefile that contains more than one image my $image = Wx::Perl::Imagick->new('pvoice.ico'); my $bmp = Wx::StaticBitmap->new($panel, -1, $image->ConvertToBitmap); # Select the next image in the file $image->SetIndex(1); $bmp = Wx::StaticBitmap->new($panel, -1, $image->ConvertToBitmap, ); # We can also create an image from a Wx::Image my $img = Wx::Image->new('car.jpg','image/jpeg'); my $magick = Wx::Perl::Imagick->new($img->GetWidth, $img->GetHeight, $img->GetData); my $bitmap = $magick->ConvertToBitmap; my $bmp2 = Wx::StaticBitmap->new($panel, -1, $bitmap, ) if $bitmap->Ok; # Or we can create an image from a Wx::Bitmap my $frombmp = Wx::Perl::Imagick->new($bitmap); my $newbitmap = $newbitmap->ConvertToBitmap; $bmp = Wx::StaticBitmap->new($panel, -1, $newbitmap, ) if $newbitmap->Ok; # And we can create an image from a Wx::Icon my $icon = Wx::Icon->new('pvoice.ico',wxBITMAP_TYPE_ICO, 16,16 ); my $fromicon = Wx::Perl::Imagick->new($icon); my $anotherbitmap = $fromicon->ConvertToBitmap; $bmp = Wx::StaticBitmap->new($panel, -1, $anotherbitmap, ) if $anotherbitmap->Ok; ... # Now it's also possible to use Image::Magick's conversions and filters $magick->->Crop(geometry=>'100x100"+100"+100'); ...This class is meant to be a replacement for Wx::Image, adding all functionality of Image::Magick. Hence the name Wx::Perl::Imagick. Most of the API of Wx::Image has been copied for backwards compatibility, but you can also call any method of Image::Magick on a constructed Wx::Perl::Magick instance. This will greatly improve the possibilities you have with an image in wxPerl.Requirements:· Perl Requirements: · Perl


Wx::Perl::Imagick Related Software