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.

DarkBASIC Discussion / 16-bit bitmap and rotozoomer success!

Author
Message
IronHoof2
21
Years of Service
User Offline
Joined: 21st Dec 2003
Location:
Posted: 19th May 2004 06:32
Thanks to mentor I was able to figure out the 16-bitmaps in DBClassic now note these rutines are made for (DB classic with enhancment package)

some of these will be optimized just a little more

1st
MBPoint(memblock,x,y) retrieves a pixel from a 16-bit memblock bitmap

2nd RotoZoomer rotates while zooming and zooming out of an image "QUICKLY" now note unlike most of these had to use my own method to get it to work because line and dot arnt fast enough for continuos rotation i found myself beginning to love the box statment.
the trick is to use reverse transformation then scale from that into a square panel THIS function also clips away black for sprites!

The new bitmap rutines alows the image to transfer from bitmap to array VARY quickly so no delay! it rotates right away! (sorry for the ryme)

im determind on figuring out every 2d graphical function ever put into a 2d game!

the memblockpoint function is included but isnt actually used for the rotozoomer but can be

I am I was

Login to post a reply

Server time is: 2025-05-23 19:35:03
Your offset time is: 2025-05-23 19:35:03