37 , maSizePixel(rBitmapEx.GetSizePixel())
38 , maBitmapEx(rBitmapEx)
44 , maStockName(
std::move(aStockName))
50 , maSizePixel(rMetaFile.GetPrefSize())
60 sal_Int32 nScalePercentage = -1;
65 nScalePercentage = fScale * 100.0;
71 nScalePercentage, eScalingFlags))
81 OUString aFileName =
maStockName.replaceAt(nStart, nEnd - nStart,
u"");
82 if (!
ImageTree::get().loadImage(aFileName, aIconTheme, aBitmapEx,
true,
83 nScalePercentage, eScalingFlags))
86 " and " << aFileName <<
" at " << fScale);
97 rBitmapEx = aBitmapEx;
167 aVDev->SetOutputSizePixel(aTarget);
sal_uInt64 BitmapChecksum
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
Gets the application's settings.
BitmapChecksum GetChecksum() const
const Size & GetSizePixel() const
static bool Filter(BitmapEx &rBmpEx, BitmapFilter const &rFilter)
static VCL_DLLPUBLIC ImageTree & get()
BitmapChecksum maBitmapChecksum
BitmapEx const & getBitmapEx(bool bDisabled=false)
Legacy - the original bitmap.
BitmapEx maBitmapEx
Original bitmap - or cache of a potentially scaled bitmap.
BitmapEx maDisabledBitmapEx
Size maSizePixel
if non-empty: cached original size of maStockName else Size of maBitmap
Size getSizePixel()
get size in co-ordinates not scaled for HiDPI
bool loadStockAtScale(SalGraphics *pGraphics, BitmapEx &rBitmapEx)
BitmapEx const & getBitmapExForHiDPI(bool bDisabled, SalGraphics *pGraphics)
Taking account of HiDPI scaling.
ImplImage(const BitmapEx &rBitmapEx)
std::unique_ptr< GDIMetaFile > mxMetaFile
rare case of dynamically created Image contents
bool isEqual(const ImplImage &ref) const
OUString maStockName
If set - defines the bitmap via images.zip*.
virtual bool ShouldDownscaleIconsAtSurface(double *pScaleOut) const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
OUString DetermineIconTheme() const
Determine which icon theme should be used.
#define SAL_WARN(area, stream)