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.