Image::Dot - create 1x1 pixel image files (pure-perl)
1.1
use Image::Dot; $reddot = dot_PNG_RGB(255, 0, 0); $bluetransparentdot = dot_PNG_RGBA(0, 0, 255, 32); $cleardot = dot_PNG_RGBA(0, 0, 0, 0); $cleargifdot = dot_GIF_transparent;
This package provides 1x1 pixel PNG images of a certain RGB color (also with transparency) without relying on any external modules like GD, libpng or Compress::Zlib. These pixel dots can be useful in a pure-perl HTTP server to be able to create colored dots on-the-fly, e.g. for formatting or drawing purposes.
Additionally, a transparent GIF dot is provided (PNG transparency support in some common browsers is bad to non-existent).
(c) 2002 Roland Giersig <RGIERSIG@cpan.org>
This module can be used under the same license as perl itself.
To install Image::Dot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::Dot
CPAN shell
perl -MCPAN -e shell install Image::Dot
For more information on module installation, please visit the detailed CPAN module installation guide.