LibreOffice Module vcl (master) 1
|
#include <BitmapWriteAccess.hxx>
Private Member Functions | |
BitmapWriteAccess ()=delete | |
BitmapWriteAccess (const BitmapWriteAccess &)=delete | |
BitmapWriteAccess & | operator= (const BitmapWriteAccess &)=delete |
Private Attributes | |
std::optional< BitmapColor > | mpLineColor |
std::optional< BitmapColor > | mpFillColor |
Definition at line 25 of file BitmapWriteAccess.hxx.
BitmapWriteAccess::BitmapWriteAccess | ( | Bitmap & | rBitmap | ) |
Definition at line 27 of file BitmapWriteAccess.cxx.
References Write.
|
overridevirtual |
Definition at line 32 of file BitmapWriteAccess.cxx.
|
privatedelete |
|
privatedelete |
void BitmapWriteAccess::CopyScanline | ( | tools::Long | nY, |
const BitmapReadAccess & | rReadAcc | ||
) |
Definition at line 34 of file BitmapWriteAccess.cxx.
References BitmapReadAccess::GetPixelFromData(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::GetScanlineFormat(), BitmapInfoAccess::GetScanlineSize(), BitmapInfoAccess::HasPalette(), BitmapInfoAccess::Height(), ImplFastCopyScanline(), BitmapReadAccess::ImplGetBitmapBuffer(), mnHeight, BitmapBuffer::mnWidth, BitmapInfoAccess::mpBuffer, SAL_WARN_IF, BitmapReadAccess::SetPixelOnData(), and BitmapInfoAccess::Width().
void BitmapWriteAccess::CopyScanline | ( | tools::Long | nY, |
ConstScanline | aSrcScanline, | ||
ScanlineFormat | nSrcScanlineFormat, | ||
sal_uInt32 | nSrcScanlineSize | ||
) |
Definition at line 60 of file BitmapWriteAccess.cxx.
References Bitmap32IsPreMultipled(), DBG_ASSERT, BitmapReadAccess::GetPixelForN1BitMsbPal(), BitmapReadAccess::GetPixelForN24BitTcBgr(), BitmapReadAccess::GetPixelForN24BitTcRgb(), BitmapReadAccess::GetPixelForN32BitTcAbgr(), BitmapReadAccess::GetPixelForN32BitTcArgb(), BitmapReadAccess::GetPixelForN32BitTcBgra(), BitmapReadAccess::GetPixelForN32BitTcBgrx(), BitmapReadAccess::GetPixelForN32BitTcMask(), BitmapReadAccess::GetPixelForN32BitTcRgba(), BitmapReadAccess::GetPixelForN32BitTcRgbx(), BitmapReadAccess::GetPixelForN32BitTcXbgr(), BitmapReadAccess::GetPixelForN32BitTcXrgb(), BitmapReadAccess::GetPixelForN8BitPal(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::GetScanlineFormat(), BitmapInfoAccess::GetScanlineSize(), BitmapInfoAccess::HasPalette(), ImplFastCopyScanline(), BitmapReadAccess::ImplGetBitmapBuffer(), mnHeight, BitmapBuffer::mnWidth, BitmapInfoAccess::mpBuffer, N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, nCount, RemoveScanline(), and BitmapReadAccess::SetPixelOnData().
Definition at line 216 of file BitmapWriteAccess.cxx.
References mpLineColor, SetPixel(), Point::X(), and Point::Y().
Referenced by DrawRect().
void BitmapWriteAccess::DrawRect | ( | const tools::Rectangle & | rRect | ) |
Definition at line 380 of file BitmapWriteAccess.cxx.
References tools::Rectangle::BottomLeft(), tools::Rectangle::BottomRight(), DrawLine(), FillRect(), mpFillColor, mpLineColor, tools::Rectangle::TopLeft(), and tools::Rectangle::TopRight().
void BitmapWriteAccess::Erase | ( | const Color & | rColor | ) |
Definition at line 184 of file BitmapWriteAccess.cxx.
References tools::Rectangle::Bottom(), BitmapInfoAccess::GetBestPaletteIndex(), BitmapReadAccess::GetScanline(), BitmapInfoAccess::GetScanlineSize(), Bitmap::GetSizePixel(), BitmapInfoAccess::HasPalette(), ImplFastEraseBitmap(), tools::Rectangle::IsEmpty(), BitmapInfoAccess::maBitmap, BitmapInfoAccess::mpBuffer, tools::Rectangle::Right(), and BitmapReadAccess::SetPixelOnData().
void BitmapWriteAccess::FillRect | ( | const tools::Rectangle & | rRect | ) |
Definition at line 352 of file BitmapWriteAccess.cxx.
References tools::Rectangle::Bottom(), BitmapReadAccess::GetScanline(), Bitmap::GetSizePixel(), tools::Rectangle::Intersection(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), BitmapInfoAccess::maBitmap, mpFillColor, tools::Rectangle::Right(), BitmapReadAccess::SetPixelOnData(), and tools::Rectangle::Top().
Referenced by DrawRect().
|
privatedelete |
void BitmapWriteAccess::SetFillColor | ( | ) |
Definition at line 163 of file BitmapWriteAccess.cxx.
References mpFillColor.
void BitmapWriteAccess::SetFillColor | ( | const Color & | rColor | ) |
Definition at line 165 of file BitmapWriteAccess.cxx.
References Color::GetAlpha(), BitmapInfoAccess::GetBestPaletteIndex(), BitmapInfoAccess::HasPalette(), and mpFillColor.
void BitmapWriteAccess::SetLineColor | ( | const Color & | rColor | ) |
Definition at line 144 of file BitmapWriteAccess.cxx.
References Color::GetAlpha(), BitmapInfoAccess::GetBestPaletteIndex(), BitmapInfoAccess::HasPalette(), and mpLineColor.
|
inline |
Definition at line 35 of file BitmapWriteAccess.hxx.
|
inline |
Definition at line 42 of file BitmapWriteAccess.hxx.
References BitmapInfoAccess::HasPalette().
|
inline |
Definition at line 50 of file BitmapWriteAccess.hxx.
References BitmapReadAccess::GetScanline(), BitmapReadAccess::mFncSetPixel, mnHeight, and mnWidth.
Referenced by DrawLine().
|
inline |
Definition at line 59 of file BitmapWriteAccess.hxx.
|
private |
Definition at line 78 of file BitmapWriteAccess.hxx.
Referenced by DrawRect(), FillRect(), and SetFillColor().
|
private |
Definition at line 77 of file BitmapWriteAccess.hxx.
Referenced by DrawLine(), DrawRect(), and SetLineColor().