App-Widget
view release on metacpan or search on metacpan
cgi-bin/app-button view on Meta::CPAN
$y = int(($height - $fontheight + 1)/2);
$im->string($font,$x,$y,$text,&color($fontcolor));
}
}
else {
$im->rectangle(0,0,99,99,&color("black")); # Put a black frame around the picture
$im->arc(50,50,95,75,0,360,&color("blue")); # Draw a blue oval
$im->fill(50,50,&color("red")); # And fill it with red
}
binmode STDOUT; # make sure we are writing to a binary stream
$method = $cgi->request_method();
if ($method) {
#print $cgi->header(-type=>"image/$type");
print $cgi->header(-type=>"image/$type", -expires=>'+1d', -Last_modified => 'Sun, 06 Jan 1980 00:00:00 GMT');
}
if ($method ne "HEAD") {
if ($type eq "jpeg") {
( run in 0.306 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )