LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
BitmapWriteAccess Class Reference

#include <bitmapwriteaccess.hxx>

Inheritance diagram for BitmapWriteAccess:
[legend]
Collaboration diagram for BitmapWriteAccess:
[legend]

Public Member Functions

 BitmapWriteAccess (Bitmap &rBitmap)
 
virtual ~BitmapWriteAccess () override
 
void CopyScanline (long nY, const BitmapReadAccess &rReadAcc)
 
void CopyScanline (long nY, ConstScanline aSrcScanline, ScanlineFormat nSrcScanlineFormat, sal_uInt32 nSrcScanlineSize)
 
void CopyBuffer (const BitmapReadAccess &rReadAcc)
 
void SetPalette (const BitmapPalette &rPalette)
 
void SetPaletteEntryCount (sal_uInt16 nCount)
 
void SetPaletteColor (sal_uInt16 nColor, const BitmapColor &rBitmapColor)
 
void SetPixel (long nY, long nX, const BitmapColor &rBitmapColor)
 
void SetPixelIndex (long nY, long nX, sal_uInt8 cIndex)
 
void SetLineColor (const Color &rColor)
 
void SetFillColor ()
 
void SetFillColor (const Color &rColor)
 
void Erase (const Color &rColor)
 
void DrawLine (const Point &rStart, const Point &rEnd)
 
void FillRect (const tools::Rectangle &rRect)
 
void DrawRect (const tools::Rectangle &rRect)
 
- Public Member Functions inherited from BitmapReadAccess
 BitmapReadAccess (Bitmap &rBitmap, BitmapAccessMode nMode=BitmapAccessMode::Read)
 
virtual ~BitmapReadAccess () override
 
Scanline GetBuffer () const
 
Scanline GetScanline (long nY) const
 
BitmapColor GetPixelFromData (const sal_uInt8 *pData, long nX) const
 
sal_uInt8 GetIndexFromData (const sal_uInt8 *pData, long nX) const
 
void SetPixelOnData (sal_uInt8 *pData, long nX, const BitmapColor &rBitmapColor)
 
BitmapColor GetPixel (long nY, long nX) const
 
BitmapColor GetColor (long nY, long nX) const
 
sal_uInt8 GetPixelIndex (long nY, long nX) const
 
BitmapColor GetInterpolatedColorWithFallback (double fY, double fX, const BitmapColor &rFallback) const
 Get the interpolated color at coordinates fY, fX; if outside, return rFallback. More...
 
BitmapColor GetColorWithFallback (double fY, double fX, const BitmapColor &rFallback) const
 Get the color at coordinates fY, fX; if outside, return rFallback. More...
 
SAL_DLLPRIVATE BitmapBufferImplGetBitmapBuffer () const
 
- Public Member Functions inherited from BitmapInfoAccess
 BitmapInfoAccess (Bitmap &rBitmap, BitmapAccessMode nMode=BitmapAccessMode::Info)
 
virtual ~BitmapInfoAccess ()
 
bool operator! () const
 
long Width () const
 
long Height () const
 
bool IsTopDown () const
 
bool IsBottomUp () const
 
ScanlineFormat GetScanlineFormat () const
 
sal_uInt32 GetScanlineSize () const
 
sal_uInt16 GetBitCount () const
 
BitmapColor GetBestMatchingColor (const BitmapColor &rBitmapColor)
 
bool HasPalette () const
 
const BitmapPaletteGetPalette () const
 
sal_uInt16 GetPaletteEntryCount () const
 
const BitmapColorGetPaletteColor (sal_uInt16 nColor) const
 
const BitmapColorGetBestPaletteColor (const BitmapColor &rBitmapColor) const
 
sal_uInt16 GetBestPaletteIndex (const BitmapColor &rBitmapColor) const
 
ColorMaskGetColorMask () const
 

Private Member Functions

 BitmapWriteAccess ()=delete
 
 BitmapWriteAccess (const BitmapWriteAccess &)=delete
 
BitmapWriteAccessoperator= (const BitmapWriteAccess &)=delete
 

Private Attributes

boost::optional< BitmapColormpLineColor
 
boost::optional< BitmapColormpFillColor
 

Additional Inherited Members

- Static Public Member Functions inherited from BitmapReadAccess
static BitmapColor GetPixelForN1BitMsbPal (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN1BitLsbPal (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN4BitMsnPal (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN4BitLsnPal (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN8BitPal (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN8BitTcMask (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN16BitTcMsbMask (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN16BitTcLsbMask (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN24BitTcBgr (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN24BitTcRgb (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcAbgr (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcArgb (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcBgra (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcRgba (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcMask (ConstScanline pScanline, long nX, const ColorMask &rMask)
 
static void SetPixelForN1BitMsbPal (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN1BitLsbPal (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN4BitMsnPal (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN4BitLsnPal (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN8BitPal (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN8BitTcMask (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN16BitTcMsbMask (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN16BitTcLsbMask (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN24BitTcBgr (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN24BitTcRgb (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcAbgr (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcArgb (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcBgra (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcRgba (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcMask (Scanline pScanline, long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
- Protected Member Functions inherited from BitmapReadAccess
SAL_DLLPRIVATE bool ImplSetAccessPointers (ScanlineFormat nFormat)
 
- Protected Attributes inherited from BitmapReadAccess
FncGetPixel mFncGetPixel
 
FncSetPixel mFncSetPixel
 
- Protected Attributes inherited from BitmapInfoAccess
Bitmap maBitmap
 
BitmapBuffermpBuffer
 
ColorMask maColorMask
 
BitmapAccessMode const mnAccessMode
 

Detailed Description

Definition at line 25 of file bitmapwriteaccess.hxx.

Constructor & Destructor Documentation

BitmapWriteAccess::BitmapWriteAccess ( Bitmap rBitmap)

Definition at line 325 of file bmpacc.cxx.

References Write.

BitmapWriteAccess::~BitmapWriteAccess ( )
overridevirtual

Definition at line 330 of file bmpacc.cxx.

BitmapWriteAccess::BitmapWriteAccess ( )
privatedelete
BitmapWriteAccess::BitmapWriteAccess ( const BitmapWriteAccess )
privatedelete

Member Function Documentation

void BitmapWriteAccess::CopyBuffer ( const BitmapReadAccess rReadAcc)
void BitmapWriteAccess::CopyScanline ( long  nY,
const BitmapReadAccess rReadAcc 
)
void BitmapWriteAccess::CopyScanline ( long  nY,
ConstScanline  aSrcScanline,
ScanlineFormat  nSrcScanlineFormat,
sal_uInt32  nSrcScanlineSize 
)
void BitmapWriteAccess::DrawLine ( const Point rStart,
const Point rEnd 
)

Definition at line 100 of file bmpacc3.cxx.

References mpLineColor, SetPixel(), Point::X(), and Point::Y().

Referenced by DrawRect().

void BitmapWriteAccess::DrawRect ( const tools::Rectangle rRect)
void BitmapWriteAccess::Erase ( const Color rColor)
void BitmapWriteAccess::FillRect ( const tools::Rectangle rRect)
BitmapWriteAccess& BitmapWriteAccess::operator= ( const BitmapWriteAccess )
privatedelete
void BitmapWriteAccess::SetFillColor ( )

Definition at line 44 of file bmpacc3.cxx.

References mpFillColor.

Referenced by JPEGReader::CreateIntermediateGraphic(), and Bitmap::Erase().

void BitmapWriteAccess::SetFillColor ( const Color rColor)
void BitmapWriteAccess::SetLineColor ( const Color rColor)
void BitmapWriteAccess::SetPalette ( const BitmapPalette rPalette)
inline

Definition at line 37 of file bitmapwriteaccess.hxx.

Referenced by Bitmap::ImplConvertDown(), and Bitmap::Invert().

void BitmapWriteAccess::SetPaletteColor ( sal_uInt16  nColor,
const BitmapColor rBitmapColor 
)
inline
void BitmapWriteAccess::SetPaletteEntryCount ( sal_uInt16  nCount)
inline
void BitmapWriteAccess::SetPixel ( long  nY,
long  nX,
const BitmapColor rBitmapColor 
)
inline
void BitmapWriteAccess::SetPixelIndex ( long  nY,
long  nX,
sal_uInt8  cIndex 
)
inline

Member Data Documentation

boost::optional<BitmapColor> BitmapWriteAccess::mpFillColor
private

Definition at line 87 of file bitmapwriteaccess.hxx.

Referenced by DrawRect(), FillRect(), and SetFillColor().

boost::optional<BitmapColor> BitmapWriteAccess::mpLineColor
private

Definition at line 86 of file bitmapwriteaccess.hxx.

Referenced by DrawLine(), DrawRect(), and SetLineColor().


The documentation for this class was generated from the following files: