Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / How to turn small bitmaps into one big one

Author
Message
Bilboo
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location:
Posted: 11th Jan 2004 04:16
Hi,

I've 40 images (it's an explosion) that I'd like to convert into one big bitmap (say 8*5) for ease of loading, any ideas on the easiest way to do it?

Thanks in advance
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Jan 2004 04:28
write a x and y for loop to corespond with the layout
eg: x = 1 to 8 : y = 1 to 5

also say each image is 32 x 32
x*32 and y*32 becuase its the amount of divisions

you could paste them all to a bitmap area and then export the bitmap or save the file out.
Bilboo
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location:
Posted: 11th Jan 2004 04:34
Thanks for the quick reply.

Is there anyway to use a paint package to do the same job? Just trying to same myself some time by avoiding writing a script to do it.

Thanks again
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Jan 2004 04:39
yes most art packages can stitch up images like that no problems.
open one at a time and copy the whole area into memory then paste them one at a time into a large space. you may have to use an art package that uses layers or it might be messy.
Bilboo
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location:
Posted: 11th Jan 2004 04:41
I'll have a go at that.

Thanks for your time
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Jan 2004 04:46
cheers mate.
Bilboo
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location:
Posted: 11th Jan 2004 16:55
Hi again,

I decided to try out indi's first suggestion and write a small script in DB Pro to load the images and create a bitmap, which has worked great.

My only question now is how do you save the bitmap back to the HD? I hope I haven't missed anything obvious but I gone through the reference manual and just can't see how you do it.

Thanks in advance
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 11th Jan 2004 17:44 Edited at: 11th Jan 2004 17:45
you still have the save image command, make the bitmap into an image and save that as a .bmp, then load it as a bitmap when you want it, it isn`t in the manual since they removed the command in pro but replaced it after some complaints on a later patch, so make sure you have patch 5.2, cheers.

Mentor.

System spec : Pentium 3.0Ghz, 512MB DDR, 2x160Gb HD (using icewave hd coolers ), DVD RW/CD RW (all modes), multimedia front panel, 6 way surround sound, ATI radeon 9800Pro 128mb.
Bilboo
20
Years of Service
User Offline
Joined: 5th Dec 2003
Location:
Posted: 12th Jan 2004 00:18
Thanks Mentor,

Managed to get it all working.

Login to post a reply

Server time is: 2024-11-25 23:21:27
Your offset time is: 2024-11-25 23:21:27