Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5086

How to place an image within another image at a certain position while retaining transparency using gd

From James Andresakis <jimandresakis@gmail.com>
Newsgroups comp.lang.php
Subject How to place an image within another image at a certain position while retaining transparency using gd
Date 2012-03-02 14:52 -0800
Organization http://groups.google.com
Message-ID <22612061.274.1330728723573.JavaMail.geo-discussion-forums@ynlp18> (permalink)

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next | Find similar | Unroll thread


Thread

How to place an image within another image at a certain position while retaining transparency using gd James Andresakis <jimandresakis@gmail.com> - 2012-03-02 14:52 -0800

csiph-web