Hi,
I am having a problem and would like to see if anyone can spot anything wrong with my code.
The problem is that when I generate the image the bottom left corner gets a slight kink in it. This makes the image useless for what I want.
Here's the code.
<?php
$radius=50;
$cornerSrc = imagecreatetruecolor($radius, $radius);
$white = imagecolorallocate($cornerSrc, 0, 255, 255);
$black = imagecolorallocate($cornerSrc,255, 0, 0);
$centerX=$radius;
$centerY=$radius;
$width=($radius*2);
$height=($radius*2);
$start=180;
$end=270;
// create a background.
imagefill($cornerSrc, 1, 1, $white);
// fill the corner arc so it can go invis.
//imagearc($img, $centerX, $centerY, $width, $height, $start, $end, $white);
imagefilledarc($cornerSrc, $centerX, $centerY, $width, $height, $start, $end, $black, IMG_ARC_PIE & IMG_ARC_EDGED);
header("Content-type: Image/png");
imagepng($cornerSrc);
?>
Am I doing something wrong or is it just PHP?