PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Jul 19, 2019 10:02 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: puting a table to image
PostPosted: Sun Jun 01, 2008 9:26 am 
Offline
Forum Newbie

Joined: Thu May 15, 2008 10:01 am
Posts: 11
hi :)
I want to create a table(contanines some tiny images gotten of a database randomly) and put in to a background(for examle 400*400 pixels), how can i do this?
how can i change it to one image that seems one image and non seperatable?
best regard


Last edited by onion2k on Sun Jun 01, 2008 9:37 am, edited 1 time in total.
There's no need to make your text bigger than normal.


Top
 Profile  
 
PostPosted: Sun Jun 01, 2008 9:36 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
It can be done very easily with imagecopy(). Create a 400*400 image using imagecreate() or imagecreatetruecolor(), then open the individual images using imagecreatefromjpg() (or imagecreatefromstring() if the actually image data is in the database), and copy them to the place you want them in the big image.


Top
 Profile  
 
PostPosted: Sun Jun 01, 2008 9:44 am 
Offline
Forum Newbie

Joined: Thu May 15, 2008 10:01 am
Posts: 11
hi onio2k
if i want to put images in a table first and then put that image to background ,dose this way works?
regards


Top
 Profile  
 
PostPosted: Sun Jun 01, 2008 11:01 am 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
No idea what you mean.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group