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


Groups > comp.lang.php > #5086 > unrolled thread

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

Started byJames Andresakis <jimandresakis@gmail.com>
First post2012-03-02 14:52 -0800
Last post2012-03-02 14:52 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.php


Contents

  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

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

FromJames Andresakis <jimandresakis@gmail.com>
Date2012-03-02 14:52 -0800
SubjectHow to place an image within another image at a certain position while retaining transparency using gd
Message-ID<22612061.274.1330728723573.JavaMail.geo-discussion-forums@ynlp18>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web