#include "tlVision.h"
Go to the source code of this file.
Functions | |
int | tl_write_bmp (tlPixel *src, int width, int height, tl_format format, char *filename) |
int | tl_write_jpg (tlPixel *src, int width, int height, int pixel_width, int quality, char *filename) |
int | tl_write_ppm (tlPixel *src, int width, int height, char *filename) |
int | tl_write_tlb (tlImage *image, char *filename) |
tlPixel * | tl_read_bmp (char *filename, int *width, int *height, tl_format *format) |
tlPixel * | tl_read_jpg (char *filename, int *width, int *height, tl_format *format) |
tlPixel * | tl_read_ppm (char *filename, int *width, int *height, tl_format *format) |
void * | tl_read_tlb (char *filename, int *width, int *height, int *pixel_width, tl_format *format) |
Read an image from a BMP format.
filename | file name | |
width | [out] image width | |
height | [out] image height | |
format | [out] image format |
Read an image from a JPEG format.
filename | file name | |
width | [out] image width | |
height | [out] image height | |
format | [out] image format |
Read an image from a Portable Pixmap format (binary format).
filename | file name | |
width | [out] image width | |
height | [out] image height | |
format | [out] image format |
void* tl_read_tlb | ( | char * | filename, | |
int * | width, | |||
int * | height, | |||
int * | pixel_width, | |||
tl_format * | format | |||
) |
Read an image in TLIB format.
filename | file name | |
width | [out] image width | |
height | [out] image height | |
pixel_width | [out] pixel width | |
format | [out] image format |
Write to Bitmap format.
src | RGB pixel array to save | |
width | image width | |
height | image height | |
format | image format | |
filename | the file name. If NULL, write to stdout |
int tl_write_jpg | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
int | quality, | |||
char * | filename | |||
) |
Write to JPEG format.
src | RGB pixel array to save | |
width | image width | |
height | image height | |
filename | the file name; if NULL, write to stdout | |
pixel_width | the number of bytes in each pixel | |
quality | the quality of the output jpg file [%] |
int tl_write_ppm | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
char * | filename | |||
) |
Write to Portable Pixmap format (binary format).
src | RGB pixel array to save | |
width | image width | |
height | image height | |
filename | the file name; if NULL, write to stdout |
int tl_write_tlb | ( | tlImage * | image, | |
char * | filename | |||
) |
Write to TLIB image format.
image image to save filename the file name. If NULL, write to stdout.