LibreOffice Module vcl (master) 1
|
#include <image.h>
Public Member Functions | |
ImplImage (const BitmapEx &rBitmapEx) | |
ImplImage (const GDIMetaFile &rMetaFile) | |
ImplImage (OUString aStockName) | |
bool | isStock () const |
const OUString & | getStock () const |
Size | getSizePixel () |
get size in co-ordinates not scaled for HiDPI More... | |
BitmapEx const & | getBitmapEx (bool bDisabled=false) |
Legacy - the original bitmap. More... | |
BitmapEx const & | getBitmapExForHiDPI (bool bDisabled, SalGraphics *pGraphics) |
Taking account of HiDPI scaling. More... | |
bool | isEqual (const ImplImage &ref) const |
bool | isSizeEmpty () const |
Private Member Functions | |
bool | loadStockAtScale (SalGraphics *pGraphics, BitmapEx &rBitmapEx) |
Private Attributes | |
BitmapChecksum | maBitmapChecksum |
Size | maSizePixel |
if non-empty: cached original size of maStockName else Size of maBitmap More... | |
OUString | maStockName |
If set - defines the bitmap via images.zip*. More... | |
std::unique_ptr< GDIMetaFile > | mxMetaFile |
rare case of dynamically created Image contents More... | |
BitmapEx | maBitmapEx |
Original bitmap - or cache of a potentially scaled bitmap. More... | |
BitmapEx | maDisabledBitmapEx |
ImplImage::ImplImage | ( | const BitmapEx & | rBitmapEx | ) |
Definition at line 36 of file ImplImage.cxx.
ImplImage::ImplImage | ( | const GDIMetaFile & | rMetaFile | ) |
Definition at line 49 of file ImplImage.cxx.
ImplImage::ImplImage | ( | OUString | aStockName | ) |
Definition at line 43 of file ImplImage.cxx.
BitmapEx const & ImplImage::getBitmapEx | ( | bool | bDisabled = false | ) |
Legacy - the original bitmap.
non-HiDPI compatibility method.
Definition at line 123 of file ImplImage.cxx.
References BitmapFilter::Filter(), BitmapEx::GetChecksum(), getSizePixel(), BitmapEx::GetSizePixel(), maBitmapChecksum, maBitmapEx, and maDisabledBitmapEx.
Referenced by getBitmapExForHiDPI().
BitmapEx const & ImplImage::getBitmapExForHiDPI | ( | bool | bDisabled, |
SalGraphics * | pGraphics | ||
) |
Taking account of HiDPI scaling.
Definition at line 153 of file ImplImage.cxx.
References getBitmapEx(), BitmapEx::GetSizePixel(), Size::Height(), SkiaHelper::isAlphaMaskBlendingEnabled(), isStock(), SkiaHelper::isVCLSkiaEnabled(), loadStockAtScale(), maBitmapEx, maSizePixel, mxMetaFile, SalGraphics::ShouldDownscaleIconsAtSurface(), Size::Width(), and WITH_ALPHA.
Size ImplImage::getSizePixel | ( | ) |
get size in co-ordinates not scaled for HiDPI
Definition at line 102 of file ImplImage.cxx.
References BitmapEx::GetSizePixel(), BitmapEx::IsEmpty(), isSizeEmpty(), isStock(), loadStockAtScale(), maBitmapChecksum, maBitmapEx, maDisabledBitmapEx, maSizePixel, maStockName, and SAL_WARN.
Referenced by getBitmapEx().
|
inline |
Definition at line 55 of file image.h.
References maStockName.
bool ImplImage::isEqual | ( | const ImplImage & | ref | ) | const |
Definition at line 143 of file ImplImage.cxx.
References isStock(), maBitmapEx, and maStockName.
|
inline |
|
inline |
Definition at line 50 of file image.h.
References maStockName.
Referenced by getBitmapExForHiDPI(), getSizePixel(), and isEqual().
|
private |
Definition at line 56 of file ImplImage.cxx.
References StyleSettings::DetermineIconTheme(), ImageTree::get(), Application::GetSettings(), AllSettings::GetStyleSettings(), IgnoreScalingFactor, maStockName, NONE, SAL_WARN, SalGraphics::ShouldDownscaleIconsAtSurface(), and u.
Referenced by getBitmapExForHiDPI(), and getSizePixel().
|
private |
Definition at line 31 of file image.h.
Referenced by getBitmapEx(), and getSizePixel().
|
private |
Original bitmap - or cache of a potentially scaled bitmap.
Definition at line 40 of file image.h.
Referenced by getBitmapEx(), getBitmapExForHiDPI(), getSizePixel(), and isEqual().
|
private |
Definition at line 41 of file image.h.
Referenced by getBitmapEx(), and getSizePixel().
|
private |
if non-empty: cached original size of maStockName else Size of maBitmap
Definition at line 33 of file image.h.
Referenced by getBitmapExForHiDPI(), getSizePixel(), and isSizeEmpty().
|
private |
If set - defines the bitmap via images.zip*.
Definition at line 35 of file image.h.
Referenced by getSizePixel(), getStock(), isEqual(), isStock(), and loadStockAtScale().
|
private |
rare case of dynamically created Image contents
Definition at line 37 of file image.h.
Referenced by getBitmapExForHiDPI().