LibreOffice Module vcl (master) 1
|
This template handles BitmapAccess the RAII way. More...
#include <scopedbitmapaccess.hxx>
Public Member Functions | |
ScopedBitmapAccess (Bitmap &rBitmap) | |
ScopedBitmapAccess (Access *pAccess, Bitmap &rBitmap) | |
ScopedBitmapAccess () | |
ScopedBitmapAccess & | operator= (ScopedBitmapAccess &&other) |
ScopedBitmapAccess (const ScopedBitmapAccess &)=delete | |
ScopedBitmapAccess & | operator= (const ScopedBitmapAccess &)=delete |
~ScopedBitmapAccess () COVERITY_NOEXCEPT_FALSE | |
void | reset () |
bool | operator! () const |
operator bool () const | |
Access * | get () |
const Access * | get () const |
Access * | operator-> () |
const Access * | operator-> () const |
Access & | operator* () |
const Access & | operator* () const |
Private Attributes | |
Access * | mpAccess |
Bitmap * | mpBitmap |
This template handles BitmapAccess the RAII way.
Please don't use directly, but through the ready-made typedefs ScopedReadAccess and ScopedWriteAccess in classes Bitmap and AlphaMask.
Use as follows: Bitmap aBitmap; Bitmap::ScopedReadAccess pReadAccess( aBitmap ); pReadAccess->SetPixel()...
Bitmap aBitmap2; BitmapScopedWriteAccess pWriteAccess( bCond ? aBitmap2.AcquireWriteAccess() : 0, aBitmap2 ); if ( pWriteAccess )...
Definition at line 48 of file scopedbitmapaccess.hxx.
|
inlineexplicit |
Definition at line 51 of file scopedbitmapaccess.hxx.
References vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess, and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpBitmap.
|
inline |
Definition at line 58 of file scopedbitmapaccess.hxx.
|
inline |
Definition at line 64 of file scopedbitmapaccess.hxx.
|
delete |
|
inline |
Definition at line 84 of file scopedbitmapaccess.hxx.
References vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess, vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpBitmap, and Bitmap::ReleaseAccess().
|
inline |
Definition at line 105 of file scopedbitmapaccess.hxx.
References Access, and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess.
Referenced by vcl::unotools::bitmapExFromXBitmap(), OutputDevice::BlendBitmapWithAlpha(), vcl::bitmap::CanvasExtractBitmapData(), vcl::bitmap::CanvasTransformBitmap(), BitmapEx::ChangeColorAlpha(), BitmapSymmetryCheck::check(), vcl::bitmap::CreateFromData(), Bitmap::Dither(), OutputDevice::DrawDeviceAlphaBitmapSlowPath(), BitmapScaleSuperFilter::execute(), BitmapGaussianSeparableBlurFilter::execute(), ImplVectorizer::ImplVectorize(), Bitmap::Mirror(), and vcl::PDFWriterImpl::writeBitmapObject().
|
inline |
Definition at line 106 of file scopedbitmapaccess.hxx.
References Access, and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess.
|
inlineexplicit |
Definition at line 100 of file scopedbitmapaccess.hxx.
References vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess.
|
inline |
Definition at line 99 of file scopedbitmapaccess.hxx.
References vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess.
|
inline |
Definition at line 111 of file scopedbitmapaccess.hxx.
References Access, and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess.
|
inline |
Definition at line 112 of file scopedbitmapaccess.hxx.
References Access, and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess.
|
inline |
Definition at line 108 of file scopedbitmapaccess.hxx.
References Access, and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess.
|
inline |
Definition at line 109 of file scopedbitmapaccess.hxx.
References Access, and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess.
|
delete |
|
inline |
Definition at line 71 of file scopedbitmapaccess.hxx.
References vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess, and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpBitmap.
|
inline |
Definition at line 90 of file scopedbitmapaccess.hxx.
References vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpAccess, vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::mpBitmap, and Bitmap::ReleaseAccess().
Referenced by Bitmap::Adjust(), OutputDevice::BlendBitmap(), OutputDevice::BlendBitmapWithAlpha(), AlphaMask::BlendWith(), Bitmap::CopyPixel(), Bitmap::CopyPixel_AlphaOptimized(), Bitmap::CreateAlphaMask(), createBlendFrame(), vcl::bitmap::CreateFromData(), Bitmap::CreateMask(), Bitmap::CreateRegion(), Bitmap::Crop(), DetectEdges(), Bitmap::Dither(), vcl::bitmap::DrawAndClipBitmap(), OutputDevice::EmulateDrawTransparent(), BitmapScaleSuperFilter::execute(), BitmapColorQuantizationFilter::execute(), BitmapConvolutionMatrixFilter::execute(), BitmapDuoToneFilter::execute(), BitmapEmbossGreyFilter::execute(), BitmapGaussianSeparableBlurFilter::execute(), BitmapMedianFilter::execute(), BitmapMonochromeFilter::execute(), BitmapPopArtFilter::execute(), BitmapSeparableUnsharpenFilter::execute(), BitmapSepiaFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapSobelGreyFilter::execute(), BitmapSolarizeFilter::execute(), BitmapFastScaleFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapLightenFilter::execute(), BitmapMaskToAlphaFilter::execute(), Bitmap::Expand(), Bitmap::ImplConvertDown8BPP(), Bitmap::ImplMakeGreyscales(), ImplVectorizer::ImplVectorize(), ImportTiffGraphicImport(), Bitmap::Mirror(), vcl::pngWrite(), readWebp(), Bitmap::Replace(), Bitmap::Rotate(), and JPEGWriter::Write().
|
private |
Definition at line 115 of file scopedbitmapaccess.hxx.
Referenced by vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::get(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::operator bool(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::operator!(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::operator*(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::operator->(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::operator=(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::reset(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::ScopedBitmapAccess(), and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::~ScopedBitmapAccess().
|
private |
Definition at line 116 of file scopedbitmapaccess.hxx.
Referenced by vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::operator=(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::reset(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::ScopedBitmapAccess(), and vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::~ScopedBitmapAccess().