View Single Post
Old 12-05-2012, 05:31 AM   #2
abhirampathak3
Registered User
 
Join Date: Nov 2012
Location: India
Posts: 103
PNG transparency issue

<?php
$Image = ImageCreateTrueColor(80, 40);

$back = ImageColorAllocate($Image, 255, 255, 0);
$red = ImageColorAllocate($Image, 255, 0, 0);
$green = ImageColorAllocate($Image, 0, 255, 0);
$black = ImageColorAllocate($Image, 0, 0, 0);

ImageColorTransparent($Image, $back);
ImageFilledRectangle($Image, 0, 0, 80, 40, $back);
ImageArc($Image, 20, 20, 32, 32, 120, 0, $red);
ImageString($Image, 5, 20, 20, "hello", $black);

ImagePNG($Image, "c:/bad.png");
?>
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Shopping Cart - PrestaShop, Zencart; CMS - WordPress, Joomla; Custom Development


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- SEO, Pay Per Click (PPC), SEM, Link Popularity Building, SEO Copywriting, SMO, SMM
abhirampathak3 is offline   Reply With Quote