Glimmr Canvas-Based Drawing

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Bitmap-rendered string class

    A bitmap-rendered string is a kind of rendered string.

    The specification of bitmap-rendered string is "A bitmap-rendered string is a rendered string in which each glyph is drawn as a bitmap; that is, with individual pixels or 'bits' drawn directly to the screen by Glimmr. It does not require any external image files, only that a valid bitmap font (such as that provided by the Glimmr Bitmap Font extension) be specified as the 'associated font'. As with bitmaps, we can set the 'bit-size' property to set the size of each bit, and the 'tint' and 'background tint' properties to define the colors. When a background tint is provided, a single rectangle is drawn encompassing the entire text area of the rendered string."

    A bitmap-rendered string has a number called the bit-size. The bit-size of a bitmap-rendered string is 1.

    [The dot-size is set automatically by the extension. Authors need not use it.]
    A bitmap-rendered string has a number called the dot-size. The dot-size of a bitmap-rendered string is 1.