jungalist Posted May 10, 2007 Share Posted May 10, 2007 What I would like to do is grab an image, determine what colour is at a certain pixel (maybe 10, 10) and then set that colour to transparent for the whole image. Basically it is so that I can dynamically place an image on various backgrounds for previewing. I am not worried about perfection (anit-aliasing, matte, etc). What class would I be using to set the transparency, and what class for sampling the "key" pixel? Any help is appreciated. Link to comment https://forums.phpfreaks.com/topic/50796-make-a-colour-transparent/ Share on other sites More sharing options...
trq Posted May 10, 2007 Share Posted May 10, 2007 What class would I be using to set the transparency, and what class for sampling the "key" pixel? No classes involved. Take a look at the gd extension. Link to comment https://forums.phpfreaks.com/topic/50796-make-a-colour-transparent/#findComment-249794 Share on other sites More sharing options...
per1os Posted May 10, 2007 Share Posted May 10, 2007 I think you are going to look into GD functions. Not sure... www.php.net/image Link to comment https://forums.phpfreaks.com/topic/50796-make-a-colour-transparent/#findComment-249796 Share on other sites More sharing options...
jungalist Posted May 10, 2007 Author Share Posted May 10, 2007 Ok, thank-you. I will have a look at that. Link to comment https://forums.phpfreaks.com/topic/50796-make-a-colour-transparent/#findComment-250111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.