1 package Imager::CountColor;
4 use vars qw($VERSION @ISA @EXPORT_OK);
6 @EXPORT_OK = 'count_color';
13 XSLoader::load('Imager::CountColor', $VERSION);
22 Imager::CountColor - demonstrates writing a simple function using 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);
34 This module is a simple demonstration of how to create an XS module
35 that works with Imager objects.
37 You may want to copy the source for this module as a start.
41 Imager, Imager::Filter::DynTest
45 Tony Cook <tonyc@cpan.org>