| 1 |
package Imager::CountColor; |
| 2 |
use 5.006; |
| 3 |
use strict; |
| 4 |
use Imager; |
| 5 |
require Exporter; |
| 6 |
our @EXPORT_OK = 'count_color'; |
| 7 |
|
| 8 |
BEGIN { |
| 9 |
our $VERSION = "0.03"; |
| 10 |
our @ISA = qw(Exporter); |
| 11 |
|
| 12 |
require XSLoader; |
| 13 |
XSLoader::load('Imager::CountColor', $VERSION); |
| 14 |
} |
| 15 |
|
| 16 |
1; |
| 17 |
|
| 18 |
__END__ |
| 19 |
|
| 20 |
=head1 NAME |
| 21 |
|
| 22 |
Imager::CountColor - demonstrates writing a simple function using Imager. |
| 23 |
|
| 24 |
=head1 SYNOPSIS |
| 25 |
|
| 26 |
use Imager; |
| 27 |
use Imager::CountColor; |
| 28 |
my $im = Imager->new(...); # some Imager image |
| 29 |
...; # some sort of manipulation |
| 30 |
print count_color($im, $color_object); |
| 31 |
|
| 32 |
=head1 DESCRIPTION |
| 33 |
|
| 34 |
This module is a simple demonstration of how to create an XS module |
| 35 |
that works with Imager objects. |
| 36 |
|
| 37 |
You may want to copy the source for this module as a start. |
| 38 |
|
| 39 |
=head1 SEE ALSO |
| 40 |
|
| 41 |
Imager, Imager::Filter::DynTest |
| 42 |
|
| 43 |
=head1 AUTHOR |
| 44 |
|
| 45 |
Tony Cook <[email protected]> |
| 46 |
|
| 47 |
=cut |
| 48 |
|
| 49 |
|
| 50 |
|