create image from a bank?
Blitz3D Forums/Blitz3D Programming/create image from a bank?
| ||
I want to create a image from a bank. Something like create a bank then pokeint values to it. Then make a image from the bank. A long time ago when using dark basic pro it had memblocks and the command create image from memblock. This is basicly what I need to duplicate. I am open to different ways of doing it. 1) create bank then poke to it, image = CreateBank(4) PokeInt image, 0, 1 how then make the bank a image, not using any write pixel function? so the end result is darwimage image,0,0 2) create a image and poke directly to it image = createimage(1,1) how then to poke a value into the image pokeint only lets me poke to banks? I thought it would be easy just make a bank and use the bank as a image but banks and images must not be the same thing, cause it doesn't work. Thanks, CTP |
| ||
how then to poke a value into the image pokeint only lets me poke to banks? WritePixel/WritePixelFast. |
| ||
i would like to do this without using write pixel fast only using memory manipulation so it can be done outside of graphics mode. i have seen it done some where on here but looking though the code achives i am failing to find it again. |
| ||
sorry I got it now, I was forgetting to set my buffer to the image buffer. |
| ||
http://www.blitzbasic.com/codearcs/codearcs.php?code=1518 But it isn't faster than writepixelfast. |