- loadBitmapFromFile
T loadBitmapFromFile(string filename)
Loads a bitmap from disk.
Currently supported formats: *.tga, *.png, *.bmp
- loadBitmapFromImage
T loadBitmapFromImage(Image img)
Loads a bitmap from Image.
- loadBitmapSheetFromFile
T[] loadBitmapSheetFromFile(string filename, int x, int y)
Loads a bitmap sheet from file.
This one doesn't require TGA devarea extensions.
- loadBitmapSheetFromImage
T[] loadBitmapSheetFromImage(Image img, int x, int y)
Creates a bitmap sheet from an image file.
This one doesn't require embedded data.
- loadBitmapSliceFromImage
T loadBitmapSliceFromImage(Image img, int x, int y, int w, int h)
Loads a bitmap slice from an image.
Ideal for loading sprite sheets.
- loadFileFromDisk
File loadFileFromDisk(string filename)
Undocumented in source. Be warned that the author may not have intended to support it.
- loadImage
Image loadImage(F file)
Loads an Image from a File or VFile.
Automatically detects format from file extension.
- loadMidiFile
MIDI loadMidiFile(F source)
Undocumented in source. Be warned that the author may not have intended to support it.
- loadPaletteFromFile
Color[] loadPaletteFromFile(string filename)
Loads a palette from a file.
- loadPaletteFromImage
Color[] loadPaletteFromImage(Image img)
Loads a palette from image.
- loadSoundFromFile
deprecated Mix_Chunk* loadSoundFromFile(char* filename)
Loads a *.wav file if SDL2 mixer is used
Deprecated, use pixelperfect.audio instead!
- padScanLine
size_t[] padScanLine(ubyte[] scanline)
Pads a scanline to be on size_t's bounds.