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) |
Loads an image from an already open file. Returns NULL if failed.
This will call imFileReadImageInfo and imFileReadImageData.
index specifies the image number between 0 and image_count-1.
The returned image will be of the same color_space and data_type of the image in the file.
Attributes from the file will be stored at the image. See also imErrorCodes.
ifile:LoadImage([index: number]) -> image: imImage, error: number [in Lua 5]
Default index is 0.
Loads an image from an already open file. Returns NULL if failed.
This function assumes that the image in the file has the same parameters as the given image.
This will call imFileReadImageInfo and imFileReadImageData.
index specifies the image number between 0 and image_count-1.
The returned image will be of the same color_space and data_type of the image in the file.
Attributes from the file will be stored at the image. See also imErrorCodes.
ifile:LoadImageFrame(index: number, image: imImage) -> error: number [in Lua 5]
Default index is 0.
Loads an image from an already open file, but forces the image to be a bitmap.
The returned imagem will be always a Bitmap image, with color_space RGB, MAP, GRAY or BINARY, and data_type IM_BYTE.
index specifies the image number between 0 and image_count-1.
Returns NULL if failed. Attributes from the file will be stored at the image. See also imErrorCodes.
ifile:LoadBitmap([index: number]) -> image: imImage, error: number [in Lua 5]
Default index is 0.
imImage* imFileLoadImageRegion | ( | imFile * | ifile, | |
int | index, | |||
int | bitmap, | |||
int * | error, | |||
int | xmin, | |||
int | xmax, | |||
int | ymin, | |||
int | ymax, | |||
int | width, | |||
int | height | |||
) |
Loads an image region from an already open file. Returns NULL if failed.
This will call imFileReadImageInfo and imFileReadImageData.
index specifies the image number between 0 and image_count-1.
The returned image will be of the same color_space and data_type of the image in the file, or will be a Bitmap image.
Attributes from the file will be stored at the image. See also imErrorCodes.
For now, it works only for the ECW file format.
ifile:LoadRegion(index, bitmap, xmin, xmax, ymin, ymax, width, height: number) -> image: imImage, error: number [in Lua 5]
Default index is 0.
Loads an image from an already open file, but forces the image to be a bitmap.
This function assumes that the image in the file has the same parameters as the given image.
The imagem must be a Bitmap image, with color_space RGB, MAP, GRAY or BINARY, and data_type IM_BYTE.
index specifies the image number between 0 and image_count-1.
Returns NULL if failed. Attributes from the file will be stored at the image. See also imErrorCodes.
ifile:LoadBitmapFrame(index: number, image: imImage) -> error: number [in Lua 5]
Default index is 0.
Saves the image to an already open file.
This will call imFileWriteImageInfo and imFileWriteImageData.
Attributes from the image will be stored at the file. Returns error code.
ifile:SaveImage(image: imImage) -> error: number [in Lua 5]
imImage* imFileImageLoad | ( | const char * | file_name, | |
int | index, | |||
int * | error | |||
) |
Loads an image from file. Open, loads and closes the file.
index specifies the image number between 0 and image_count-1.
Returns NULL if failed. Attributes from the file will be stored at the image. See also imErrorCodes.
im.FileImageLoad(file_name: string, [index: number]) -> image: imImage, error: number [in Lua 5]
Default index is 0.
imImage* imFileImageLoadBitmap | ( | const char * | file_name, | |
int | index, | |||
int * | error | |||
) |
Loads an image from file, but forces the image to be a bitmap. Open, loads and closes the file.
index specifies the image number between 0 and image_count-1.
Returns NULL if failed. Attributes from the file will be stored at the image. See also imErrorCodes.
im.FileImageLoadBitmap(file_name: string, [index: number]) -> image: imImage, error: number [in Lua 5]
Default index is 0.
imImage* imFileImageLoadRegion | ( | const char * | file_name, | |
int | index, | |||
int | bitmap, | |||
int * | error, | |||
int | xmin, | |||
int | xmax, | |||
int | ymin, | |||
int | ymax, | |||
int | width, | |||
int | height | |||
) |
Loads an image region from file. Open, loads and closes the file.
index specifies the image number between 0 and image_count-1.
Returns NULL if failed. Attributes from the file will be stored at the image. See also imErrorCodes.
For now, it works only for the ECW file format.
im.FileImageLoadRegion(file_name: string, index, bitmap, xmin, xmax, ymin, ymax, width, height: number, ) -> image: imImage, error: number [in Lua 5]
Default index is 0.
int imFileImageSave | ( | const char * | file_name, | |
const char * | format, | |||
const imImage * | image | |||
) |
Saves the image to file. Open, saves and closes the file.
Returns error code.
Attributes from the image will be stored at 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]