Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
Assimp::Bitmap Class Reference

This class is used to store and write bitmap information. More...

#include <Bitmap.h>

Classes

struct  DIB
 
struct  Header
 

Static Public Member Functions

static bool Save (aiTexture *texture, IOStream *file)
 Will save an aiTexture instance as a bitmap. More...
 

Static Protected Member Functions

static void WriteData (aiTexture *texture, IOStream *file)
 
static void WriteDIB (DIB &dib, IOStream *file)
 
static void WriteHeader (Header &header, IOStream *file)
 

Static Protected Attributes

static constexpr std::size_t mBytesPerPixel = 4
 

Detailed Description

This class is used to store and write bitmap information.

Member Function Documentation

◆ Save()

static bool Assimp::Bitmap::Save ( aiTexture texture,
IOStream file 
)
static

Will save an aiTexture instance as a bitmap.

Parameters
textureThe pointer to the texture instance
fileThe filename to save into.
Returns
true if successfully saved, false if not.

◆ WriteData()

static void Assimp::Bitmap::WriteData ( aiTexture texture,
IOStream file 
)
staticprotected

◆ WriteDIB()

static void Assimp::Bitmap::WriteDIB ( DIB dib,
IOStream file 
)
staticprotected

◆ WriteHeader()

static void Assimp::Bitmap::WriteHeader ( Header header,
IOStream file 
)
staticprotected

Member Data Documentation

◆ mBytesPerPixel

constexpr std::size_t Assimp::Bitmap::mBytesPerPixel = 4
staticconstexprprotected

The documentation for this class was generated from the following file: