Constructor
(package) new BitmapFormat(textureopt)
Creates a new BitmapFormat.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
texture |
string |
<optional> |
The name of the resource file to be used as texture. |
- Source:
Members
(static, constant) FONT_MEDIUM :string
A bitmap texture for a medium-sized font where each character is represented
by 8 x 8 pixels.
Type:
- string
- Default Value:
- "rune_font_medium_256x24"
- Source:
(static, constant) FONT_SMALL :string
A bitmap texture for a small font where each character is represented by
6 x 10 pixels. This is the default font for BitmapField and is used when
nothing else is specified.
Type:
- string
- Default Value:
- "rune_font_small_192x30"
- Source:
(readonly) charWidth :number
The width of a character (in pixels).
Type:
- number
- Source:
(readonly) charWidth :number
The height of a character (in pixels).
Type:
- number
- Source:
(readonly) texture :HTMLImageElement
Reference to the bitmap texture used to represent the font.
Type:
- HTMLImageElement
- Source: