Doc Patches from Cogent.
authorArnar Mar Hrafnkelsson <addi@cpan.org>
Sat, 20 Apr 2002 06:36:55 +0000 (06:36 +0000)
committerArnar Mar Hrafnkelsson <addi@cpan.org>
Sat, 20 Apr 2002 06:36:55 +0000 (06:36 +0000)
Changes
README
lib/Imager/ImageTypes.pod

diff --git a/Changes b/Changes
index 8416f3691546dd98ffa6d0847f926b39d8f15d39..5c9364de18922dbd67089e5ca006f3b0849c49ee 100644 (file)
--- a/Changes
+++ b/Changes
@@ -651,6 +651,7 @@ Revision history for Perl extension Imager.
           parameter
         - support UTF8 text with Freetype 1.x 
         - second parameter to SvPV() must be of type STRLEN
+       - Doc pathces from cogent.
 
 =================================================================
 
diff --git a/README b/README
index 1676309e9531582b6e8c77d614256a6161f76b75..96eabf15d9323307caae9b263ba94d8fda040d99 100644 (file)
--- a/README
+++ b/README
@@ -215,6 +215,7 @@ Thanks go to:
   Claes Jacobson      ( Claes )
   Philip Gwyn         ( Leolo )
   Michael Slade       ( Micksa )
+                      ( Cogent )
   Brad Murray         ( HalfJack )
   Nicholas Dronen     ( Veblen )
   Michael G Schwern   ( Schwern )
index 2d0f5cf844d3a474fc2730a0a8b73ff0f8b9575d..001b200b953b79a86970b805430a8cef9b47b171 100644 (file)
@@ -141,8 +141,9 @@ available, this may change later.
 
 =item img_set
 
-If you have an existing image, use img_set() to change it's dimensions
-- this will destroy any existing image data:
+img_set destroys the image data in the object and creates a new one
+with the given dimensions and channels.  For a way to convert image
+data between formats see the C<convert()> method.
 
   $img->img_set(xsize=>500, ysize=>500, channels=>4);
 
@@ -159,8 +160,8 @@ If you have an existing image, use img_set() to change it's dimensions
 The C<getwidth()> method returns the width of the image.  This value
 comes either from C<new()> with xsize,ysize parameters or from reading
 data from a file with C<read()>.  If called on an image that has no
-valid data in it like C<Imager-E<gt>new()> returns, the return value of
-C<getwidth()> is undef.
+valid data in it like C<Imager-E<gt>new()> returns, the return value
+of C<getwidth()> is undef.
 
 =item getheight
 
@@ -184,7 +185,7 @@ sooner if you only need to know if there are more than a certain
 number of colors in the image.  If there are more colors than asked
 for the function return undef.  Examples:
 
-  if (!defined($img->getcolorcount(maxcolors=>512)) {
+  if (defined($img->getcolorcount(maxcolors=>512)) {
     print "Less than 512 colors in image\n";
   }