LibreOffice Module vcl (master)
1
|
#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>
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 () |
#define DIBCOREHEADERSIZE ( 12UL ) |
Definition at line 39 of file dibtools.cxx.
#define DIBINFOHEADERSIZE ( sizeof(DIBInfoHeader) ) |
Definition at line 40 of file dibtools.cxx.
#define DIBV5HEADERSIZE ( sizeof(DIBV5Header) ) |
Definition at line 41 of file dibtools.cxx.
Referenced by getDIBV5HeaderSize().
typedef sal_Int32 FXPT2DOT30 |
Definition at line 45 of file dibtools.cxx.
sal_uInt32 getDIBV5HeaderSize | ( | ) |
Definition at line 1908 of file dibtools.cxx.
References DIBV5HEADERSIZE.
Definition at line 1742 of file dibtools.cxx.
Referenced by SVMConverter::ImplConvertFromSVM1(), MetaBmpAction::Read(), MetaBmpScaleAction::Read(), MetaMaskAction::Read(), MetaMaskScaleAction::Read(), and MetaMaskScalePartAction::Read().
Definition at line 1751 of file dibtools.cxx.
References Bitmap, Color, Bitmap::GetBitCount(), SvStream::GetError(), Bitmap::HasGreyPalette8Bit(), AlphaMask::ImplSetBitmap(), tools::GenericTypeSerializer::readColor(), SvStream::ReadUChar(), SvStream::ReadUInt32(), SvStream::remainingSize(), SvStream::ResetError(), SvStream::Seek(), and SvStream::Tell().
Referenced by MetaBmpExAction::Read(), MetaBmpExScaleAction::Read(), ReadAnimation(), TypeSerializer::readGraphic(), ReadImplWallpaper(), and ImpGraphic::swapInGraphic().
Definition at line 1842 of file dibtools.cxx.
bool ReadRawDIB | ( | BitmapEx & | rTarget, |
const unsigned char * | pBuf, | ||
const ScanlineFormat | nFormat, | ||
const int | nHeight, | ||
const int | nStride | ||
) |
Definition at line 1850 of file dibtools.cxx.
References Bitmap::AcquireWriteAccess(), BitmapWriteAccess::CopyScanline(), and BitmapEx::maBitmap.
Definition at line 1866 of file dibtools.cxx.
Referenced by GraphicFilter::ExportGraphic(), unographic::Graphic::getDIB(), unographic::Graphic::getMaskDIB(), vcl::bitmap::GetMaskDIB(), EMFWriter::ImplWriteBmpRecord(), TransferableHelper::SetBitmapEx(), WMFWriter::WMFRecord_StretchDIB(), MetaBmpAction::Write(), MetaBmpScaleAction::Write(), MetaMaskAction::Write(), MetaMaskScaleAction::Write(), and MetaMaskScalePartAction::Write().
Definition at line 1875 of file dibtools.cxx.
References BitmapEx::GetBitmap().
Definition at line 1883 of file dibtools.cxx.
References Bitmap, Color, BitmapEx::GetBitmap(), BitmapEx::maMask, BitmapEx::maTransparentColor, BitmapEx::meTransparent, tools::GenericTypeSerializer::writeColor(), SvStream::WriteUChar(), and SvStream::WriteUInt32().
Referenced by vcl::PDFWriterImpl::implWriteBitmapEx(), ImpGraphic::swapOutGraphic(), MetaBmpExAction::Write(), MetaBmpExScaleAction::Write(), WriteAnimation(), TypeSerializer::writeGraphic(), and WriteImplWallpaper().