Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 20826
Status: resolved
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: LGODDARD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.34
Fixed in: (no value)



Subject: POD Errors?
use GD; $srcImage = new GD::Image(150,15); $srcImage->colorAllocate(200,200,200); @bounds = $srcImage->stringFT( $srcImage->colorAllocate(255,255,255), 'C:/winnt/fonts/arial.ttf', 12, 0, 0, 12, "stfu!" ); warn "# @bounds[0,1] Lower left corner (x,y)\n"; warn "# @bounds[2,3] Lower right corner (x,y)\n"; warn "# @bounds[4,5] Upper right corner (x,y)\n"; warn "# @bounds[6,7] Upper left corner (x,y)\n"; # Outputs # -1 13 Lower left corner (x,y) # 32 13 Lower right corner (x,y) # 32 -1 Upper right corner (x,y) # -1 -1 Upper left corner (x,y) Also, under 'Color Control' you write: Example: $white = $myImage->colorAllocate(0,0,0); #background color $black = $myImage->colorAllocate(255,255,255); $peachpuff = $myImage->colorAllocate(255,218,185); $black and $white needs swapping.
Oops: my error, was thinking PDF co-ords: though this bit stands: Show quoted text
> Also, under 'Color Control' you write: > > Example: > > $white = $myImage->colorAllocate(0,0,0); #background > color > $black = $myImage->colorAllocate(255,255,255); > $peachpuff = $myImage->colorAllocate(255,218,185); > > $black and $white needs swapping.
-- lgoddard at cpan org http://www.LeeGoddard.net
Thanks, fixed the black/white mixup -- Reini Urban