LibreOffice Module vcl (master) 1
Macros | Typedefs | Functions
dibtools.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <cassert>
#include <o3tl/safeint.hxx>
#include <vcl/dibtools.hxx>
#include <comphelper/fileformat.h>
#include <tools/zcodec.hxx>
#include <tools/stream.hxx>
#include <tools/fract.hxx>
#include <tools/helpers.hxx>
#include <tools/GenericTypeSerializer.hxx>
#include <unotools/configmgr.hxx>
#include <vcl/bitmapex.hxx>
#include <vcl/outdev.hxx>
#include <bitmap/BitmapWriteAccess.hxx>
#include <memory>
Include dependency graph for dibtools.cxx:

Go to the source code of this file.

Macros

#define DIBCOREHEADERSIZE   ( 12UL )
 
#define DIBINFOHEADERSIZE   ( sizeof(DIBInfoHeader) )
 
#define DIBV5HEADERSIZE   ( sizeof(DIBV5Header) )
 

Typedefs

typedef sal_Int32 FXPT2DOT30
 

Functions

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

Macro Definition Documentation

◆ DIBCOREHEADERSIZE

#define DIBCOREHEADERSIZE   ( 12UL )

Definition at line 39 of file dibtools.cxx.

◆ DIBINFOHEADERSIZE

#define DIBINFOHEADERSIZE   ( sizeof(DIBInfoHeader) )

Definition at line 40 of file dibtools.cxx.

◆ DIBV5HEADERSIZE

#define DIBV5HEADERSIZE   ( sizeof(DIBV5Header) )

Definition at line 41 of file dibtools.cxx.

Typedef Documentation

◆ FXPT2DOT30

typedef sal_Int32 FXPT2DOT30

Definition at line 45 of file dibtools.cxx.

Function Documentation

◆ getDIBV5HeaderSize()

sal_uInt32 getDIBV5HeaderSize ( )

Definition at line 1764 of file dibtools.cxx.

References DIBV5HEADERSIZE.

◆ ReadDIB()

bool ReadDIB ( Bitmap rTarget,
SvStream rIStm,
bool  bFileHeader,
bool  bMSOFormat 
)

◆ ReadDIBBitmapEx()

bool ReadDIBBitmapEx ( BitmapEx rTarget,
SvStream rIStm,
bool  bFileHeader,
bool  bMSOFormat 
)

◆ ReadDIBV5()

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

Definition at line 1697 of file dibtools.cxx.

References Bitmap::Invert(), and rTarget.

◆ ReadRawDIB()

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

Definition at line 1709 of file dibtools.cxx.

References i, and BitmapReadAccess::SetPixelOnData().

◆ WriteDIB() [1/2]

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

◆ WriteDIB() [2/2]

bool WriteDIB ( const BitmapEx rSource,
SvStream rOStm,
bool  bCompressed 
)

Definition at line 1734 of file dibtools.cxx.

References BitmapEx::GetBitmap().

◆ WriteDIBBitmapEx()

bool WriteDIBBitmapEx ( const BitmapEx rSource,
SvStream rOStm 
)