Home »
Imported messages »
comp.lang.php »
How to place an image within another image at a certain position while retaining transparency using gd
How to place an image within another image at a certain position while retaining transparency using gd [message #177270] |
Fri, 02 March 2012 22:52 |
James Andresakis
Messages: 1 Registered: March 2012
Karma: 0
|
Junior Member |
|
|
I have a mobile application that pulls images from my server and these images have to be in the dimensions the keep the power of two because they are used as textures to be applied to 3d objects in opengl es. I have images coming to the mobile in proper dimension but since I have strict dimensions to stay to I wanted to take the transparent image thats 256x256 and place a smaller image copy that I keep in its original proportions within the new transparent one but place it so that its centered.
I know Ive seen this done before but of course I didnt need it at the time so I didnt bother to save the link :p
Any help with the matter would be much appreciated
|
|
|
Goto Forum:
Current Time: Mon Nov 25 01:21:42 GMT 2024
Total time taken to generate the page: 0.02708 seconds