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...
 

Namespaces

 kanzi
 

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::ImageResizeFilter { kanzi::ResizeFilterNearestNeighbor, kanzi::ResizeFilterBilinear, kanzi::ResizeFilterWeightedAverage }
 Image resizing filter methods. More...
 

Functions

KANZI_API BitmapImageUniquePtr kanzi::loadImage (Domain *domain, string_view imageUrl, bool isInCubemap)
 Loads an image from KZB file. More...
 
KANZI_API BitmapImageUniquePtr kanzi::loadNativeImage (Domain *domain, NativeDeploymentTarget target, string_view imageUrl, bool isInCubemap)
 Loads an image from KZB file with backend specific deployment target. More...
 
KANZI_API BitmapImageUniquePtr kanzi::imageLoadPNG (KzcInputStream *stream, string_view name="")
 Loads a PNG image from an input stream. More...
 
KANZI_API BitmapImageUniquePtr kanzi::imageLoadJPEG (KzcInputStream *stream, string_view name="")
 Loads a JPEG image from an input stream. More...
 
KANZI_API BitmapImageUniquePtr kanzi::imageLoadPVRTC (KzcInputStream *stream, string_view name="")
 Loads a PVRTC image from an input stream. More...
 
KANZI_API BitmapImageUniquePtr kanzi::imageLoadETC (KzcInputStream *stream, string_view name="")
 Loads an ETC image from an input stream. More...
 
KANZI_API BitmapImageUniquePtr kanzi::imageLoadATC (KzcInputStream *stream, string_view name="")
 Loads an ATC image from an input stream. More...
 
KANZI_API BitmapImageUniquePtr kanzi::imageLoadASTC (KzcInputStream *stream, string_view name="")
 Loads an ASTC image from an input stream. More...
 
KANZI_API BitmapImageUniquePtr kanzi::imageLoadRaw2D (KzcInputStream *stream, string_view name="")
 Loads a Raw2D image from an input stream. More...
 
KANZI_API void kanzi::imageSavePNG (const BitmapImage &image, KzcOutputStream *stream)
 Saves an image as a PNG to an output stream. More...
 
KANZI_API void kanzi::imageSavePNGPaletted (const BitmapImage &image, KzcOutputStream *stream)
 Saves an image as a paletted PNG to an output stream. More...
 
KANZI_API void kanzi::imageSaveJPEG (const BitmapImage &image, KzcOutputStream *stream, float quality=1.0f)
 Saves an image as a JPEG to an output stream. More...