arrange images into an array to create new image

Just starting out? Need help? Post your questions and find answers here.
Haplo
User
User
Posts: 25
Joined: Tue Jun 08, 2004 8:45 pm

arrange images into an array to create new image

Post by Haplo »

I want to arrange 16 .png images, say 100x100 in size into a 4x4 grid to create a new .png image 400x400 in size and then save the newly assembled image.

I am a novice at coding (I purchased PB a long time ago but have only just started to learn properly with the limited spare time I can snatch).

Would this be simple to achieve? I would like the ability to define the array size for grids other than 4x4.
-----

If a man is standing in the middle of the forest speaking, and there is no woman around to hear him, is he still wrong?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Shouldn't be a problem using PB's drawing and image commands. I don't mind hacking up some code for you but I'd rather have the images to hand first.

If I pm'd you an e-mail address could you send me the images?
I may look like a mule, but I'm not a complete ass.
Haplo
User
User
Posts: 25
Joined: Tue Jun 08, 2004 8:45 pm

Post by Haplo »

That would be great, tnx.
-----

If a man is standing in the middle of the forest speaking, and there is no woman around to hear him, is he still wrong?
Haplo
User
User
Posts: 25
Joined: Tue Jun 08, 2004 8:45 pm

Post by Haplo »

Thanks to srod for knocking together some very nice code and so quickly too!

This is a great community!
-----

If a man is standing in the middle of the forest speaking, and there is no woman around to hear him, is he still wrong?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

If a man is standing in the middle of the forest speaking, and there is no woman around to hear him, is he still wrong?
:lol:

Love the signature!
I may look like a mule, but I'm not a complete ass.
Post Reply