Prima::image-load 1.20 review
DownloadPrima::image-load is a Perl module using image subsystem. Simple loading Simplest case, loading a single image would look like:
|
|
Prima::image-load is a Perl module using image subsystem.
Simple loading
Simplest case, loading a single image would look like:
my $x = Prima::Image-> load( 'filename.duf');
die "$@" unless $x;
Image functions can work being either invoked from package, or from existing Prima::Image object, in latter case the caller object itself is changing. The code above could be also written as
my $x = Prima::Image-> create;
die "$@" unless $x-> load( 'filename.duf');
In both cases $x contains image data upon success. Error is returned into $@ variable ( see perldoc perlvar for more info).
Requirements:
Perl
Prima::image-load 1.20 keywords