2bitbitmapdemo plus graphics????
sccoupe
Posts: 118
I am messing with rayslogic's 2bitbitmapdemo.spin and with a little of his help have been able to convert a bmp and display it on the screen properly. Now I want to put some vector graphics over it with the graphics object. I can use the graphics object alone, no problem, but when added to the 2bitbitmapdemo, I get wierd results. A simple line is segmented and displayed all ove the place. Also, if I just gr.clear the doesnt clear the entire bitmap. I have been able to change what part of the screen that it clears by messing with the bitmap_base value needed for the gr.setup. I have also had different result by messing with other gr.setup values but cant get what im lookin for. I need the graphics object to write to the same "screen" as the bitmap is displayed on. Any clues on what im doing wrong? The code is attached.
Thanks all.
Jason
Thanks all.
Jason
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
That's probably the closest code that exists for what you want to do. Works on 1 bit per pixel and 2 bits per pixel.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
Thanks
Jason
I think it might work.
But, this line looks wrong:
·· gr.setup(20, 128, 96, 40, bitmap_base)
You don't really want 128 y tiles, right?
gr.setup(16, 12, 128, 96, bitmap_base)
It looks like I goofed those numbers as I messed around trying to get the line to display correctly. I have this corrected with what im working with but forgot to correct it before I posted the attachement.
Thanks
Jason