Imaging Control 4 C Library 1.2.0
|
A collection of functions to store image buffers as in various types of images files. More...
Data Structures | |
struct | IC4_IMAGEBUFFER_SAVE_OPTIONS_BMP |
Contains image file storage options for bitmap files. More... | |
struct | IC4_IMAGEBUFFER_SAVE_OPTIONS_PNG |
Contains image file storage options for PNG files. More... | |
struct | IC4_IMAGEBUFFER_SAVE_OPTIONS_JPEG |
Contains image file storage options for Jpeg files. More... | |
struct | IC4_IMAGEBUFFER_SAVE_OPTIONS_TIFF |
Contains image file storage options for TIFF files. More... | |
Enumerations | |
enum | IC4_PNG_COMPRESSION_LEVEL { IC4_PNG_COMPRESSION_AUTO , IC4_PNG_COMPRESSION_LOW , IC4_PNG_COMPRESSION_MEDIUM , IC4_PNG_COMPRESSION_HIGH , IC4_PNG_COMPRESSION_HIGHEST } |
Defines the possible PNG file compression levels. More... | |
Functions | |
bool | ic4_imagebuffer_save_as_bmp (struct IC4_IMAGE_BUFFER *pImageBuffer, const char *file_path, const struct IC4_IMAGEBUFFER_SAVE_OPTIONS_BMP *options) |
Saves an image buffer as a Bitmap file. | |
bool | ic4_imagebuffer_save_as_jpeg (struct IC4_IMAGE_BUFFER *pImageBuffer, const char *file_path, const struct IC4_IMAGEBUFFER_SAVE_OPTIONS_JPEG *options) |
Saves an image buffer as a Jpeg file. | |
bool | ic4_imagebuffer_save_as_tiff (struct IC4_IMAGE_BUFFER *pImageBuffer, const char *file_path, const struct IC4_IMAGEBUFFER_SAVE_OPTIONS_TIFF *options) |
Saves an image buffer as a Tiff file. | |
bool | ic4_imagebuffer_save_as_png (struct IC4_IMAGE_BUFFER *pImageBuffer, const char *file_path, const struct IC4_IMAGEBUFFER_SAVE_OPTIONS_PNG *options) |
Saves an image buffer as a PNG file. | |
A collection of functions to store image buffers as in various types of images files.
The supported files formats include
For each file format, there is a separate function to save the image buffer in a file, for example ic4_imagebuffer_save_as_bmp() or ic4_imagebuffer_save_as_jpeg()
Defines the possible PNG file compression levels.
Higher compression levels can generate smaller files, but the compression can take more time.
bool ic4_imagebuffer_save_as_bmp | ( | struct IC4_IMAGE_BUFFER * | pImageBuffer, |
const char * | file_path, | ||
const struct IC4_IMAGEBUFFER_SAVE_OPTIONS_BMP * | options | ||
) |
Saves an image buffer as a Bitmap file.
[in] | pImageBuffer | An image buffer |
[in] | file_path | Path of the image file |
[in] | options | Options structure configuring the save operation |
true
on success, otherwise false
.bool ic4_imagebuffer_save_as_jpeg | ( | struct IC4_IMAGE_BUFFER * | pImageBuffer, |
const char * | file_path, | ||
const struct IC4_IMAGEBUFFER_SAVE_OPTIONS_JPEG * | options | ||
) |
Saves an image buffer as a Jpeg file.
[in] | pImageBuffer | An image buffer |
[in] | file_path | Path of the image file |
[in] | options | Options structure configuring the save operation |
true
on success, otherwise false
.bool ic4_imagebuffer_save_as_png | ( | struct IC4_IMAGE_BUFFER * | pImageBuffer, |
const char * | file_path, | ||
const struct IC4_IMAGEBUFFER_SAVE_OPTIONS_PNG * | options | ||
) |
Saves an image buffer as a PNG file.
[in] | pImageBuffer | An image buffer |
[in] | file_path | Path of the image file |
[in] | options | Options structure configuring the save operation |
true
on success, otherwise false
.bool ic4_imagebuffer_save_as_tiff | ( | struct IC4_IMAGE_BUFFER * | pImageBuffer, |
const char * | file_path, | ||
const struct IC4_IMAGEBUFFER_SAVE_OPTIONS_TIFF * | options | ||
) |
Saves an image buffer as a Tiff file.
[in] | pImageBuffer | An image buffer |
[in] | file_path | Path of the image file |
[in] | options | Options structure configuring the save operation |
true
on success, otherwise false
.