VGA bitmap driver with large pixels of any color
DogP
Posts: 168
Hey,
I'm trying to generate a low resolution image on a VGA monitor with arbitrary colors per "pixel". I know there's not enough memory to allow a full screen bitmap, but I'm looking for something like an 80x60 bitmap with arbitrary colors for each "pixel" of the image (block of pixels to fill the screen). My thought was to make a bitmap out of one of the VGA Text drivers, but I don't see any of them that do individual colors per character. I don't need the character, and would gladly trade the character data for color data. It looks like I could do something like this with the VGA_512x384_Bitmap_Demo, and use the colors array for the pixels and ignore the pixels array, but that's a little bit too low resolution (16x12) and even more of a waste by not using the pixels.
Any ideas? I tried searching, but I'm not even really sure of the search terms I'm looking for.
Thanks,
Pat
I'm trying to generate a low resolution image on a VGA monitor with arbitrary colors per "pixel". I know there's not enough memory to allow a full screen bitmap, but I'm looking for something like an 80x60 bitmap with arbitrary colors for each "pixel" of the image (block of pixels to fill the screen). My thought was to make a bitmap out of one of the VGA Text drivers, but I don't see any of them that do individual colors per character. I don't need the character, and would gladly trade the character data for color data. It looks like I could do something like this with the VGA_512x384_Bitmap_Demo, and use the colors array for the pixels and ignore the pixels array, but that's a little bit too low resolution (16x12) and even more of a waste by not using the pixels.
Any ideas? I tried searching, but I'm not even really sure of the search terms I'm looking for.
Thanks,
Pat
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects
http://www.rayslogic.com/propeller/Programming/6-Bit%20Bitmap%20App/6BitBitmap.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
Pat
The Bitmap uses 1 byte per pixel, every pixel can have one of the 64 possible colors.
So you need 12 kByte for the bitmap data, and only 1 cog for the driver.
Andy
pullmoll: I couldn't build yours... do you use something besides the Propeller Tool?
Rayman: I tried yours, but my monitor doesn't seem to support that resolution [noparse]:([/noparse] .
Thanks alot for the help guys... I feel lazy for getting all this great stuff hand-fed to me [noparse];)[/noparse] .
Pat
Sorry, forgot to mention that: my code is to be compiled with BST or BSTC. See thread Brad's Spin Tool Mac/Linux/Windows IDE - Ver 0.19.3 and download here: http://www.fnarfbargle.com/bst/0193/.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects
Pat