{{htmlmetatags>metatag-robots=() metatag-title=(BITMAP ENABLE | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(Manual page for BITMAP ENABLE) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(BITMAP ENABLE | ugBASIC User Manual) metatag-og:description=(Manual page for BITMAP ENABLE) }} ====== ugBASIC User Manual ====== ===== BITMAP ENABLE ✓ ===== ===== SYNTAX ===== BITMAP ENABLE ( width, height [, colors ] ) BITMAP ENABLE ( colors ) ==== PURPOSE ==== Enable bitmap graphics on the target machine. Bitmap resolution and colors depends on hardware. Enabling the bitmap also sets the starting address in memory, for those computers that have graphics mapped in memory. Given the great variety of hardware that ugBASIC supports and the isomorphic approach adopted, this commands can be used to require a specific resolution, color depth and other characteristics in a hardware independent way. In this regard, the following approach has been adopted. It is possible to ask for specific chacteristics, such as height and width of the screen. However ugBASIC will choose the closest resolution, based on the hardware on which it will runs. Likewise, if no type of resolution constraint is set, the best is offered. To change resolution and colors, you can use the ''([width],[height],[colors])'', ''([width],[height])'' or the ''([colors])'' syntax after ''BITMAP ENABLE'' command. So, if you omit a parameters, it means that it is not important to set. ==== EXAMPLE ==== BITMAP ENABLE BITMAP ENABLE (320,200,16) BITMAP ENABLE (160,200,2) See also the following example files: * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/screens_resolution_01.bas|screens_resolution_01.bas]]'' ==== ABBREVIATION ==== Bm En ==== AVAILABLE ON ==== * Dragon 32 * Commodore 128 (MOS 8502) * Commodore 64 * Commodore VIC-20 * Atari (400/800) * * Commodore PLUS/4 * Olivetti Prodest PC128 * Dragon 64 * Thomson MO5 * TRS-80 Color Computer 3 * TRS-80 Color Computer ==== SEE ALSO ==== [[BITMAP DISABLE]] [[TILEMAP ENABLE]] ==== ANY PROBLEM? ==== If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON BITMAP ENABLE|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY ===== [[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]