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 / help please with slicing images

Author
Message
dragonmstr798
21
Years of Service
User Offline
Joined: 7th Jul 2003
Location:
Posted: 12th Jul 2003 22:47
can someone make me a get image code that slices an image that is 2304 pixels wide and 64 pixels in height i want the over all image to be 64x64 after its sliced it should have a total of 36 images alltogether
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Jul 2003 23:03
I started to answer that, but had to think again, coz the obvious answer would have problems ...

See, the problem is that a lot of graphics cards cannot handle bitmaps that wide, so your code would probably fail if loading the image, even if you're loading it just to cut it up.

Give me a short while to check out an idea I have, and I'll get back to you.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th Jul 2003 23:20
Try this. It loads the image as an image (not a bitmap), then creates a bitmap of the required size (64x64), then keeps pasting the image into this bitmap, moving left by 64 pixels each time.

You'll need to substitute your own image name into the first command of course

Login to post a reply

Server time is: 2024-09-20 15:47:05
Your offset time is: 2024-09-20 15:47:05