1Dot(3) User Contributed Perl Documentation Dot(3)
2
3
4
6 Image::Dot - create 1x1 pixel image files (pure-perl)
7
9 1.1
10
12 use Image::Dot;
13
14 $reddot = dot_PNG_RGB(255, 0, 0);
15 $bluetransparentdot = dot_PNG_RGBA(0, 0, 255, 32);
16 $cleardot = dot_PNG_RGBA(0, 0, 0, 0);
17 $cleargifdot = dot_GIF_transparent;
18
20 This package provides 1x1 pixel PNG images of a certain RGB color (also
21 with transparency) without relying on any external modules like GD,
22 libpng or Compress::Zlib. These pixel dots can be useful in a pure-
23 perl HTTP server to be able to create colored dots on-the-fly, e.g. for
24 formatting or drawing purposes.
25
26 Additionally, a transparent GIF dot is provided (PNG transparency
27 support in some common browsers is bad to non-existent).
28
30 (c) 2002 Roland Giersig <RGIERSIG@cpan.org>
31
32 This module can be used under the same license as perl itself.
33
34
35
36perl v5.30.0 2019-07-26 Dot(3)