From bac4fcee03b3ae21face1a0281dfe5851e2e010d Mon Sep 17 00:00:00 2001 From: Arnar Mar Hrafnkelsson Date: Wed, 16 Jan 2002 06:47:30 +0000 Subject: [PATCH] Moved last bits out docs of Imager.pm. --- Imager.pm | 42 ++------------------------------------- lib/Imager/Draw.pod | 5 +++++ lib/Imager/Files.pod | 8 ++++++++ lib/Imager/ImageTypes.pod | 1 + 4 files changed, 16 insertions(+), 40 deletions(-) diff --git a/Imager.pm b/Imager.pm index 53ac3896..fc1b3aa6 100644 --- a/Imager.pm +++ b/Imager.pm @@ -2475,54 +2475,16 @@ This example creates a completely black image of width 400 and height 300 and 4 channels. - - - - -When writing to a tiff image file you can also specify the 'class' -parameter, which can currently take a single value, "fax". If class -is set to fax then a tiff image which should be suitable for faxing -will be written. For the best results start with a grayscale image. -By default the image is written at fine resolution you can override -this by setting the "fax_fine" parameter to 0. - -If you are reading from a gif image file, you can supply a 'colors' -parameter which must be a reference to a scalar. The referenced -scalar will receive an array reference which contains the colors, each -represented as an Imager::Color object. - -If you already have an open file handle, for example a socket or a -pipe, you can specify the 'fd' parameter instead of supplying a -filename. Please be aware that you need to use fileno() to retrieve -the file descriptor for the file: - - $img->read(fd=>fileno(FILE), type=>'gif') or die $img->errstr; - -For writing using the 'fd' option you will probably want to set $| for -that descriptor, since the writes to the file descriptor bypass Perl's -(or the C libraries) buffering. Setting $| should avoid out of order -output. For example a common idiom when writing a CGI script is: - - # the $| _must_ come before you send the content-type - $| = 1; - print "Content-Type: image/jpeg\n\n"; - $img->write(fd=>fileno(STDOUT), type=>'jpeg') or die $img->errstr; - - - =head1 BUGS -box, arc, do not support antialiasing yet. Arc, is only filled as of -yet. - When saving Gif images the program does NOT try to shave of extra colors if it is possible. If you specify 128 colors and there are only 2 colors used - it will have a 128 colortable anyway. =head1 AUTHOR -Arnar M. Hrafnkelsson, addi@umich.edu, and recently lots of assistance -from Tony Cook. See the README for a complete list. +Arnar M. Hrafnkelsson (addi@umich.edu) and Tony Cook (XXX) See the +README for a complete list. =head1 SEE ALSO diff --git a/lib/Imager/Draw.pod b/lib/Imager/Draw.pod index b0f57ea8..60afb624 100644 --- a/lib/Imager/Draw.pod +++ b/lib/Imager/Draw.pod @@ -154,4 +154,9 @@ flood_fill() method, for example: will fill all regions the same color connected to the point (50, 50). +=head1 BUGS + +box, arc, do not support antialiasing yet. Arc, is only filled as of +yet. Default color is not unified yet. + =back diff --git a/lib/Imager/Files.pod b/lib/Imager/Files.pod index 5392e922..88067f3d 100644 --- a/lib/Imager/Files.pod +++ b/lib/Imager/Files.pod @@ -532,4 +532,12 @@ writing an animated gif reading tags after reading an image + +=head1 BUGS + +When saving Gif images the program does NOT try to shave of extra +colors if it is possible. If you specify 128 colors and there are +only 2 colors used - it will have a 128 colortable anyway. + + =cut diff --git a/lib/Imager/ImageTypes.pod b/lib/Imager/ImageTypes.pod index 44190d14..1d95db41 100644 --- a/lib/Imager/ImageTypes.pod +++ b/lib/Imager/ImageTypes.pod @@ -656,4 +656,5 @@ color table. =back + =cut \ No newline at end of file -- 2.39.5