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

#include <image.h>

Collaboration diagram for ImplImage:
[legend]

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< GDIMetaFilemxMetaFile
 rare case of dynamically created Image contents More...
 
BitmapEx maBitmapEx
 Original bitmap - or cache of a potentially scaled bitmap. More...
 
BitmapEx maDisabledBitmapEx
 

Detailed Description

Definition at line 28 of file image.h.

Constructor & Destructor Documentation

◆ ImplImage() [1/3]

ImplImage::ImplImage ( const BitmapEx rBitmapEx)

Definition at line 36 of file ImplImage.cxx.

◆ ImplImage() [2/3]

ImplImage::ImplImage ( const GDIMetaFile rMetaFile)

Definition at line 49 of file ImplImage.cxx.

◆ ImplImage() [3/3]

ImplImage::ImplImage ( OUString  aStockName)

Definition at line 43 of file ImplImage.cxx.

Member Function Documentation

◆ getBitmapEx()

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().

◆ getBitmapExForHiDPI()

BitmapEx const & ImplImage::getBitmapExForHiDPI ( bool  bDisabled,
SalGraphics pGraphics 
)

◆ getSizePixel()

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().

◆ getStock()

const OUString & ImplImage::getStock ( ) const
inline

Definition at line 55 of file image.h.

References maStockName.

◆ isEqual()

bool ImplImage::isEqual ( const ImplImage ref) const

Definition at line 143 of file ImplImage.cxx.

References isStock(), maBitmapEx, and maStockName.

◆ isSizeEmpty()

bool ImplImage::isSizeEmpty ( ) const
inline

Definition at line 68 of file image.h.

References maSizePixel.

Referenced by getSizePixel().

◆ isStock()

bool ImplImage::isStock ( ) const
inline

Definition at line 50 of file image.h.

References maStockName.

Referenced by getBitmapExForHiDPI(), getSizePixel(), and isEqual().

◆ loadStockAtScale()

bool ImplImage::loadStockAtScale ( SalGraphics pGraphics,
BitmapEx rBitmapEx 
)
private

Member Data Documentation

◆ maBitmapChecksum

BitmapChecksum ImplImage::maBitmapChecksum
private

Definition at line 31 of file image.h.

Referenced by getBitmapEx(), and getSizePixel().

◆ maBitmapEx

BitmapEx ImplImage::maBitmapEx
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().

◆ maDisabledBitmapEx

BitmapEx ImplImage::maDisabledBitmapEx
private

Definition at line 41 of file image.h.

Referenced by getBitmapEx(), and getSizePixel().

◆ maSizePixel

Size ImplImage::maSizePixel
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().

◆ maStockName

OUString ImplImage::maStockName
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().

◆ mxMetaFile

std::unique_ptr<GDIMetaFile> ImplImage::mxMetaFile
private

rare case of dynamically created Image contents

Definition at line 37 of file image.h.

Referenced by getBitmapExForHiDPI().


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