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. Quote 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. Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/50796-make-a-colour-transparent/#findComment-250111 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.