Page 1 of 1

puting a table to image

Posted: Sun Jun 01, 2008 9:26 am
by sara933
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

Re: puting a table to image

Posted: Sun Jun 01, 2008 9:36 am
by onion2k
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.

Re: puting a table to image

Posted: Sun Jun 01, 2008 9:44 am
by sara933
hi onio2k
if i want to put images in a table first and then put that image to background ,dose this way works?
regards

Re: puting a table to image

Posted: Sun Jun 01, 2008 11:01 am
by onion2k
No idea what you mean.