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.


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


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

#define BITFIELDS   ( 3UL )

Definition at line 37 of file dibtools.hxx.

Referenced by EMFWriter::ImplWriteBmpRecord().

#define COMPRESS_NONE   ( 0 )

Definition at line 34 of file dibtools.hxx.

#define RLE_4   ( 2 )

Definition at line 36 of file dibtools.hxx.

#define RLE_8   ( 1 )

Definition at line 35 of file dibtools.hxx.

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

Definition at line 38 of file dibtools.hxx.

Function Documentation

sal_uInt32 VCL_DLLPUBLIC getDIBV5HeaderSize ( )

Definition at line 1859 of file dibtools.cxx.


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 

Definition at line 1799 of file dibtools.cxx.

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

Definition at line 1807 of file dibtools.cxx.

References Bitmap::AcquireWriteAccess(), and BitmapEx::maBitmap.

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 

Definition at line 1832 of file dibtools.cxx.

References BitmapEx::GetBitmap().

bool VCL_DLLPUBLIC WriteDIBBitmapEx ( const BitmapEx rSource,
SvStream rOStm