Kanzi  3.9.6
Kanzi Engine API
bitmap_image.hpp File Reference

Classes

class  kanzi::BitmapImage
 Image is the basic runtime primitive to load, hold, and convert image data in memory. More...
 
struct  kanzi::LibJPEGParameters
 Parameters that Kanzi passes to libjpeg to use when loading jpg image files. More...
 
struct  kanzi::LibPNGParameters
 Parameters that Kanzi passes to libpng to use when loading png image files. More...
 

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Typedefs

typedef shared_ptr< BitmapImage > kanzi::BitmapImageSharedPtr
 Image shared pointer type. More...
 
typedef unique_ptr< BitmapImage > kanzi::BitmapImageUniquePtr
 Image unique pointer type. More...
 
typedef vector< BitmapImageUniquePtr > kanzi::BitmapImageVector
 Image shared pointer vector type. More...
 

Enumerations

enum  kanzi::ImageFlipAxis { kanzi::FlipAxisNone, kanzi::FlipAxisHorizontal, kanzi::FlipAxisVertical, kanzi::FlipAxisHorizontalAndVertical }
 Image axis to flip over. More...
 
enum  kanzi::ImageResizeFilter { kanzi::ResizeFilterNearestNeighbor, kanzi::ResizeFilterBilinear, kanzi::ResizeFilterWeightedAverage }
 Image resizing filter methods. More...
 

Functions

BitmapImageUniquePtr kanzi::imageLoadJPEG (File &file, string_view name="")
 Loads a JPEG image from an input stream. More...
 
BitmapImageUniquePtr kanzi::imageLoadJPEG (File &file, const LibJPEGParameters &libjpegParameters, string_view name="")
 Loads a JPEG image from an input stream. More...
 
BitmapImageUniquePtr kanzi::imageLoadPNG (File &file, string_view name="")
 Loads a PNG image from an input stream. More...
 
BitmapImageUniquePtr kanzi::imageLoadPNG (File &file, const LibPNGParameters &libpngParameters, string_view name="")
 Loads a PNG image from an input stream. More...
 
void kanzi::imageSaveJPEG (const BitmapImage &image, File &file, float quality=1.0f)
 Saves an image as a JPEG to an output stream. More...
 
void kanzi::imageSavePNG (const BitmapImage &image, File &file)
 Saves an image as a PNG to an output stream. More...
 
void kanzi::imageSavePNGPaletted (const BitmapImage &image, File &file)
 Saves an image as a paletted PNG to an output stream. More...