Author Topic: Bitmaps  (Read 4862 times)

0 Members and 1 Guest are viewing this topic.

Offline danny90444

  • LV3 Member (Next: 100)
  • ***
  • Posts: 41
  • Rating: +0/-0
  • Physics :)
    • View Profile
    • facebook
Bitmaps
« on: July 08, 2012, 08:16:29 pm »
Can someone explain what Bitmaps are?
Schrodinger's cat walks into a bar... and doesn't.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Bitmaps
« Reply #1 on: July 08, 2012, 08:17:26 pm »
A bitmap is like a sprite, but it can be any size, even larger than the screen itself!  They offer a relatively easy alternative to displaying large images.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Bitmaps
« Reply #2 on: July 08, 2012, 09:04:24 pm »
in axe, bitmaps are images that are drawn directly to the lcd, like text usually is, rather than drawn to a screen buffer that is then sent to the lcd all at once. this is useful when you want to have an overlay (say, a menu or something) that doesn't affect the image currently on the buffer. it shouldn't be used for displaying in-game sprites or anything like that, though, because the method of drawing directly to the lcd is much slower than using a buffer (and is, in fact, one of the biggest reasons why Basic games are so slow)

EDIT: runer pointed out that i'm behind the times and the bitmap command no longer draws directly to the screen in recent versions of axe, meaning builder is right and it's just an easy way to draw multi-sized images. if you have a single-small sprite to draw, though, the sprite commands will still be more optimised, and thus faster.
« Last Edit: July 08, 2012, 09:25:57 pm by shmibs »