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

#include <BitmapWriteAccess.hxx>

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

Public Member Functions

 BitmapWriteAccess (Bitmap &rBitmap)
 
virtual ~BitmapWriteAccess () override
 
void CopyScanline (tools::Long nY, const BitmapReadAccess &rReadAcc)
 
void CopyScanline (tools::Long nY, ConstScanline aSrcScanline, ScanlineFormat nSrcScanlineFormat, sal_uInt32 nSrcScanlineSize)
 
void SetPalette (const BitmapPalette &rPalette)
 
void SetPaletteColor (sal_uInt16 nColor, const BitmapColor &rBitmapColor)
 
void SetPixel (tools::Long nY, tools::Long nX, const BitmapColor &rBitmapColor)
 
void SetPixelIndex (tools::Long nY, tools::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
VCL_DLLPUBLIC BitmapReadAccess (Bitmap &rBitmap, BitmapAccessMode nMode=BitmapAccessMode::Read)
 
virtual VCL_DLLPUBLIC ~BitmapReadAccess () override
 
Scanline GetBuffer () const
 
Scanline GetScanline (tools::Long nY) const
 
BitmapColor GetPixelFromData (const sal_uInt8 *pData, tools::Long nX) const
 
sal_uInt8 GetIndexFromData (const sal_uInt8 *pData, tools::Long nX) const
 
void SetPixelOnData (sal_uInt8 *pData, tools::Long nX, const BitmapColor &rBitmapColor)
 
BitmapColor GetPixel (tools::Long nY, tools::Long nX) const
 
BitmapColor GetPixel (const Point &point) const
 
BitmapColor GetColor (tools::Long nY, tools::Long nX) const
 
BitmapColor GetColor (const Point &point) const
 
sal_uInt8 GetPixelIndex (tools::Long nY, tools::Long nX) const
 
sal_uInt8 GetPixelIndex (const Point &point) 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...
 
BitmapBufferImplGetBitmapBuffer () const
 
- Public Member Functions inherited from BitmapInfoAccess
 BitmapInfoAccess (Bitmap &rBitmap, BitmapAccessMode nMode=BitmapAccessMode::Info)
 
virtual ~BitmapInfoAccess ()
 
bool operator! () const
 
tools::Long Width () const
 
tools::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) const
 
bool HasPalette () const
 
const BitmapPaletteGetPalette () const
 
sal_uInt16 GetPaletteEntryCount () const
 
const BitmapColorGetPaletteColor (sal_uInt16 nColor) const
 
sal_uInt16 GetBestPaletteIndex (const BitmapColor &rBitmapColor) const
 
const ColorMaskGetColorMask () const
 

Private Member Functions

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

Private Attributes

std::optional< BitmapColormpLineColor
 
std::optional< BitmapColormpFillColor
 

Additional Inherited Members

- Static Public Member Functions inherited from BitmapReadAccess
static BitmapColor GetPixelForN1BitMsbPal (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN8BitPal (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN24BitTcBgr (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN24BitTcRgb (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcAbgr (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcXbgr (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcArgb (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcXrgb (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcBgra (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcBgrx (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcRgba (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcRgbx (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static BitmapColor GetPixelForN32BitTcMask (ConstScanline pScanline, tools::Long nX, const ColorMask &rMask)
 
static void SetPixelForN1BitMsbPal (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN8BitPal (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN24BitTcBgr (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN24BitTcRgb (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcAbgr (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcXbgr (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcArgb (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcXrgb (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcBgra (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcBgrx (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcRgba (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcRgbx (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static void SetPixelForN32BitTcMask (Scanline pScanline, tools::Long nX, const BitmapColor &rBitmapColor, const ColorMask &rMask)
 
static FncGetPixel GetPixelFunction (ScanlineFormat nFormat)
 
static FncSetPixel SetPixelFunction (ScanlineFormat nFormat)
 
- Protected Attributes inherited from BitmapReadAccess
FncGetPixel mFncGetPixel
 
FncSetPixel mFncSetPixel
 
- Protected Attributes inherited from BitmapInfoAccess
Bitmap maBitmap
 
BitmapBuffermpBuffer
 
ColorMask maColorMask
 
BitmapAccessMode mnAccessMode
 

Detailed Description

Definition at line 25 of file BitmapWriteAccess.hxx.

Constructor & Destructor Documentation

◆ BitmapWriteAccess() [1/3]

BitmapWriteAccess::BitmapWriteAccess ( Bitmap rBitmap)

Definition at line 27 of file BitmapWriteAccess.cxx.

References Write.

◆ ~BitmapWriteAccess()

BitmapWriteAccess::~BitmapWriteAccess ( )
overridevirtual

Definition at line 32 of file BitmapWriteAccess.cxx.

◆ BitmapWriteAccess() [2/3]

BitmapWriteAccess::BitmapWriteAccess ( )
privatedelete

◆ BitmapWriteAccess() [3/3]

BitmapWriteAccess::BitmapWriteAccess ( const BitmapWriteAccess )
privatedelete

Member Function Documentation

◆ CopyScanline() [1/2]

void BitmapWriteAccess::CopyScanline ( tools::Long  nY,
const BitmapReadAccess rReadAcc 
)

◆ CopyScanline() [2/2]

void BitmapWriteAccess::CopyScanline ( tools::Long  nY,
ConstScanline  aSrcScanline,
ScanlineFormat  nSrcScanlineFormat,
sal_uInt32  nSrcScanlineSize 
)

◆ DrawLine()

void BitmapWriteAccess::DrawLine ( const Point rStart,
const Point rEnd 
)

Definition at line 216 of file BitmapWriteAccess.cxx.

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

Referenced by DrawRect().

◆ DrawRect()

void BitmapWriteAccess::DrawRect ( const tools::Rectangle rRect)

◆ Erase()

void BitmapWriteAccess::Erase ( const Color rColor)

◆ FillRect()

void BitmapWriteAccess::FillRect ( const tools::Rectangle rRect)

◆ operator=()

BitmapWriteAccess & BitmapWriteAccess::operator= ( const BitmapWriteAccess )
privatedelete

◆ SetFillColor() [1/2]

void BitmapWriteAccess::SetFillColor ( )

Definition at line 163 of file BitmapWriteAccess.cxx.

References mpFillColor.

◆ SetFillColor() [2/2]

void BitmapWriteAccess::SetFillColor ( const Color rColor)

◆ SetLineColor()

void BitmapWriteAccess::SetLineColor ( const Color rColor)

◆ SetPalette()

void BitmapWriteAccess::SetPalette ( const BitmapPalette rPalette)
inline

Definition at line 35 of file BitmapWriteAccess.hxx.

◆ SetPaletteColor()

void BitmapWriteAccess::SetPaletteColor ( sal_uInt16  nColor,
const BitmapColor rBitmapColor 
)
inline

Definition at line 42 of file BitmapWriteAccess.hxx.

References BitmapInfoAccess::HasPalette().

◆ SetPixel()

void BitmapWriteAccess::SetPixel ( tools::Long  nY,
tools::Long  nX,
const BitmapColor rBitmapColor 
)
inline

◆ SetPixelIndex()

void BitmapWriteAccess::SetPixelIndex ( tools::Long  nY,
tools::Long  nX,
sal_uInt8  cIndex 
)
inline

Definition at line 59 of file BitmapWriteAccess.hxx.

Member Data Documentation

◆ mpFillColor

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

Definition at line 78 of file BitmapWriteAccess.hxx.

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

◆ mpLineColor

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

Definition at line 77 of file BitmapWriteAccess.hxx.

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


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