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) |
imImage * | imFileLoadImageRegion (imFile *ifile, int index, int bitmap, int *error, int xmin, int xmax, int ymin, int ymax, int width, int height) |
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) |
imImage * | imFileImageLoadRegion (const char *file_name, int index, int bitmap, int *error, int xmin, int xmax, int ymin, int ymax, int width, int height) |
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:LoadImage([index: number]) -> image: imImage, error: number [in Lua 5] |
|
Loads an image from an already open file. Returns NULL if failed.
ifile:LoadImageFrame(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 region from an already open file. Returns NULL if failed.
ifile:LoadRegion(index, bitmap, xmin, xmax, ymin, ymax, width, height: 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] |
|
Loads an image region from file. Open, loads and closes the file.
im.FileImageLoadRegion(file_name: string, index, bitmap, xmin, xmax, ymin, ymax, width, height: number, ) -> image: imImage, error: number [in Lua 5] |
|
Saves the image to file. Open, saves and closes the file.
im.FileImageSave(file_name: string, format: string, image: imImage) -> error: number [in Lua 5] image:Save(file_name: string, format: string) -> error: number [in Lua 5] |