imImage Storage
[Image Storage]
Detailed Description
- Functions to simplify the process of reading and writting imImage structures. Will also load and save the alpha planes when possible.
- See im_image.h
Functions | |
imImage * | imFileLoadImage (imFile *ifile, int index, int *error) |
void | imFileLoadImageFrame (imFile *ifile, int index, imImage *image, int *error) |
imImage * | imFileLoadBitmap (imFile *ifile, int index, int *error) |
void | imFileLoadBitmapFrame (imFile *ifile, int index, imImage *image, int *error) |
int | imFileSaveImage (imFile *ifile, const imImage *image) |
imImage * | imFileImageLoad (const char *file_name, int index, int *error) |
imImage * | imFileImageLoadBitmap (const char *file_name, int index, int *error) |
int | imFileImageSave (const char *file_name, const char *format, const imImage *image) |
Function Documentation
|
Loads an image from an already open file. Returns NULL if failed.
ifile:ImageLoad([index: number]) -> image: imImage, error: number [in Lua 5] |
|
Loads an image from an already open file. Returns NULL if failed.
ifile:ImageLoadFrame([index: number], image: imImage) -> error: number [in Lua 5] |
|
Loads an image from an already open file, but forces the image to be a bitmap.
ifile:LoadBitmap([index: number]) -> image: imImage, error: number [in Lua 5] |
|
Loads an image from an already open file, but forces the image to be a bitmap.
ifile:LoadBitmapFrame([index: number], image: imImage) -> error: number [in Lua 5] |
|
Saves the image to an already open file.
ifile:SaveImage(image: imImage) -> error: number [in Lua 5] |
|
Loads an image from file. Open, loads and closes the file.
im.FileImageLoad(file_name: string, [index: number]) -> image: imImage, error: number [in Lua 5] |
|
Loads an image from file, but forces the image to be a bitmap. Open, loads and closes the file.
im.FileImageLoadBitmap(file_name: string, [index: number]) -> image: imImage, error: number [in Lua 5] |
|
Saves the image to file. Open, saves and closes the file.
im.FileImageLoadBitmap(file_name: string, format: string, image: imImage) -> error: number [in Lua 5] |