LibreOffice Module vcl (master) 1
Macros | Functions
dibtools.hxx File Reference
#include <vcl/dllapi.h>
#include <vcl/Scanline.hxx>
Include dependency graph for dibtools.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COMPRESS_NONE   ( 0 )
 
#define RLE_8   ( 1 )
 
#define RLE_4   ( 2 )
 
#define BITFIELDS   ( 3UL )
 
#define ZCOMPRESS   ( ('S'|('D'<<8UL)) | 0x01000000UL ) /* == 'SD01' (binary) */
 

Functions

bool VCL_DLLPUBLIC ReadDIB (Bitmap &rTarget, SvStream &rIStm, bool bFileHeader, bool bMSOFormat=false)
 
bool VCL_DLLPUBLIC ReadDIBBitmapEx (BitmapEx &rTarget, SvStream &rIStm, bool bFileHeader=true, bool bMSOFormat=false)
 
bool VCL_DLLPUBLIC ReadDIBV5 (Bitmap &rTarget, AlphaMask &rTargetAlpha, SvStream &rIStm)
 
bool VCL_DLLPUBLIC ReadRawDIB (BitmapEx &rTarget, const unsigned char *pBuf, const ScanlineFormat nFormat, const int nHeight, const int nStride)
 
bool VCL_DLLPUBLIC WriteDIB (const Bitmap &rSource, SvStream &rOStm, bool bCompressed, bool bFileHeader)
 
bool VCL_DLLPUBLIC WriteDIB (const BitmapEx &rSource, SvStream &rOStm, bool bCompressed=true)
 
bool VCL_DLLPUBLIC WriteDIBBitmapEx (const BitmapEx &rSource, SvStream &rOStm)
 
sal_uInt32 VCL_DLLPUBLIC getDIBV5HeaderSize ()
 

Macro Definition Documentation

◆ BITFIELDS

#define BITFIELDS   ( 3UL )

Definition at line 37 of file dibtools.hxx.

◆ COMPRESS_NONE

#define COMPRESS_NONE   ( 0 )

Definition at line 34 of file dibtools.hxx.

◆ RLE_4

#define RLE_4   ( 2 )

Definition at line 36 of file dibtools.hxx.

◆ RLE_8

#define RLE_8   ( 1 )

Definition at line 35 of file dibtools.hxx.

◆ ZCOMPRESS

#define ZCOMPRESS   ( ('S'|('D'<<8UL)) | 0x01000000UL ) /* == 'SD01' (binary) */

Definition at line 38 of file dibtools.hxx.

Function Documentation

◆ getDIBV5HeaderSize()

sal_uInt32 VCL_DLLPUBLIC getDIBV5HeaderSize ( )

Definition at line 1764 of file dibtools.cxx.

References DIBV5HEADERSIZE.

◆ ReadDIB()

bool VCL_DLLPUBLIC ReadDIB ( Bitmap rTarget,
SvStream rIStm,
bool  bFileHeader,
bool  bMSOFormat = false 
)

◆ ReadDIBBitmapEx()

bool VCL_DLLPUBLIC ReadDIBBitmapEx ( BitmapEx rTarget,
SvStream rIStm,
bool  bFileHeader = true,
bool  bMSOFormat = false 
)

◆ ReadDIBV5()

bool VCL_DLLPUBLIC ReadDIBV5 ( Bitmap rTarget,
AlphaMask rTargetAlpha,
SvStream rIStm 
)

Definition at line 1697 of file dibtools.cxx.

References Bitmap::Invert(), and rTarget.

◆ ReadRawDIB()

bool VCL_DLLPUBLIC ReadRawDIB ( BitmapEx rTarget,
const unsigned char *  pBuf,
const ScanlineFormat  nFormat,
const int  nHeight,
const int  nStride 
)

Definition at line 460 of file dibtools.cxx.

References i, and BitmapReadAccess::SetPixelOnData().

◆ WriteDIB() [1/2]

bool VCL_DLLPUBLIC WriteDIB ( const Bitmap rSource,
SvStream rOStm,
bool  bCompressed,
bool  bFileHeader 
)

◆ WriteDIB() [2/2]

bool VCL_DLLPUBLIC WriteDIB ( const BitmapEx rSource,
SvStream rOStm,
bool  bCompressed = true 
)

Definition at line 1734 of file dibtools.cxx.

References BitmapEx::GetBitmap().

◆ WriteDIBBitmapEx()

bool VCL_DLLPUBLIC WriteDIBBitmapEx ( const BitmapEx rSource,
SvStream rOStm 
)