Re: Virtual displaying of images
- Posted by Ralf Nieuwenhuijsen <nieuwen at POP.XS4ALL.NL> Jul 29, 1997
- 913 views
> I want to create a huge image containing all the map of the game, but to > create that I need a method for "displaying" an image in this big image, I > tried this: < ..some code.. > > But it's extremely slow, do you know a better (faster) way for doing this > or this is the best method ? Don't use a sequence, but allocated memory. You can use my GFX or you can simply rewrite it for allocated memory. If you want to write your own routine, you need to calculate the start offset, and add the widht of the inside image, then you skip until your at your start offset + the width of the huge bitmap. Do this for as many lines (height of inside bitmap) you want. If you would use my GFX you can use the function DisplayImageVS and SaveImageVS. You simply make a screen as large as the huge bitmap, then you display the huge bitmap on the screen. Then you set the dimensions and location of the small/inside bitmap with SetView and then you can use DisplayImageVS and SaveImageVS. THey will then only work with the view/section you specified with SetView. Hope this helps (It was a bit complicated) Ralf Nieuwenhuijsen nieuwen at xs4all.nl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ~~~~>> Ralf Nieuwenhuijsen <<~~~~ ~~~>> nieuwen at xs4all.nl <<~~~~