1 package Imager::CountColor;
4 use vars qw($VERSION @ISA @EXPORT_OK);
6 @EXPORT_OK = 'count_color';
14 XSLoader::load('Imager::CountColor', $VERSION);
18 push @ISA, 'DynaLoader';
19 bootstrap Imager::CountColor $VERSION;
29 Imager::CountColor - demonstrates writing a simple function using Imager.
34 use Imager::CountColor;
35 my $im = Imager->new(...); # some Imager image
36 ...; # some sort of manipulation
37 print count_color($im, $color_object);
41 This module is a simple demonstration of how to create an XS module
42 that works with Imager objects.
44 You may want to copy the source for this module as a start.
48 Imager, Imager::Filter::DynTest
52 Tony Cook <tony@imager.perl.org>