Designed to provide utility related to Bitmaps.
Creates a faux Bitmap from a TextureAtlas entry.
The texture from a TextureAtlas to create the Bitmap analogue from.
A scale for the spritesheet to undo, e.g. a half sized spritesheet gets a scale of 2 to restore it to normal size.
The JSON object describing the frames in the atlas. This is expected to fit the JSON Hash format as exported from TexturePacker.
spritesheetImageImage | HTMLCanvasElement
The spritesheet image that contains all of the frames.
The scale to apply to all sprites from the spritesheet. For example, a half sized spritesheet should have a scale of 2.
The global dictionary to add items to.
Replaces Bitmaps in the global lib dictionary with a faux Bitmap that uses a scaled bitmap, so you can load up smaller bitmaps behind the scenes that are scaled back up to normal size, or high res bitmaps that are scaled down.