Wednesday, 15 April 2015

php - Embed image in an imagefilledellipse without covering text data -



php - Embed image in an imagefilledellipse without covering text data -

i excited able fill imagefilledellipse photo using technique:

$bg = imagecreatefrompng("myimage.png"); imagesettile($im, $bg); imagefilledellipse($im, $center_pt, $center_pt, $diameter - ($inner_diameter_offset * 2), $diameter - ($inner_diameter_offset * 2), img_color_tiled);// creates shape of circle filled png header("content-type: image/png"); imagepng($im); imagedestroy($im); imagedestroy($bg);

the problem? there lot of info beingness displayed in (formally yellow, '$yellow' ellipse). text disappears. 'myimage.png' doesn't seem covering text, seems have erased text, in other imagefilledellipses have been drawn in page.

http://flylib.com/books/en/1.265.1.225/1/ recommends utilize imagestring so:

imagestring($image, 4, 20, 90, 'no worries....', $drawing_color);

but 'imagestring' solution seems work repeating text 'no worries...' , want show variables displayed on top of drawn ellipses.

thank you help this! amber

great, found out problem was! imagepng , imagedestroy had removed. next deleted , works.

imagepng($im); imagedestroy($im); imagedestroy($bg);

php image

No comments:

Post a Comment