Kanzi 3.9.10
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

namespace  kanzi
 

Typedefs

typedef shared_ptr< BitmapImagekanzi::BitmapImageSharedPtr
 Image shared pointer type.
 
typedef unique_ptr< BitmapImagekanzi::BitmapImageUniquePtr
 Image unique pointer type.
 
typedef vector< BitmapImageUniquePtrkanzi::BitmapImageVector
 Image shared pointer vector type.
 

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