Jump to content

Make a colour transparent...?


jungalist

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.