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

#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 1896 of file dibtools.cxx.

References DIBV5HEADERSIZE.

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 1830 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 1838 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 1863 of file dibtools.cxx.

References BitmapEx::GetBitmapRef().

bool VCL_DLLPUBLIC WriteDIBBitmapEx ( const BitmapEx rSource,
SvStream rOStm 
)