logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Imager::CountColor - demonstrates writing a simple function using Imager.

Author

       Tony Cook <tonyc@cpan.org>

perl v5.40.1                                       2025-03-16                                    CountColor(3pm)

Description

       This module is a simple demonstration of how to create an XS module that works with Imager objects.

       You may want to copy the source for this module as a start.

Name

       Imager::CountColor - demonstrates writing a simple function using Imager.

See Also

       Imager, Imager::Filter::DynTest

Synopsis

         use Imager;
         use Imager::CountColor;
         my $im = Imager->new(...); # some Imager image
         ...; # some sort of manipulation
         print count_color($im, $color_object);

See Also