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.
|
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.
|
inline |
Definition at line 105 of file scopedbitmapaccess.hxx.
Referenced by vcl::unotools::bitmapExFromXBitmap(), OutputDevice::BlendBitmapWithAlpha(), vcl::bitmap::CanvasTransformBitmap(), BitmapSymmetryCheck::check(), vcl::bitmap::CreateFromData(), Bitmap::Dither(), OutputDevice::DrawDeviceAlphaBitmapSlowPath(), BitmapScaleSuperFilter::execute(), BitmapGaussianSeparableBlurFilter::execute(), vcl::PNGReaderImpl::ImplReadHeader(), ImplVectorizer::ImplVectorize(), BitmapEx::setAlphaFrom(), and vcl::PDFWriterImpl::writeBitmapObject().
|
inline |
Definition at line 106 of file scopedbitmapaccess.hxx.
|
inlineexplicit |
Definition at line 100 of file scopedbitmapaccess.hxx.
|
inline |
Definition at line 99 of file scopedbitmapaccess.hxx.
|
inline |
Definition at line 111 of file scopedbitmapaccess.hxx.
|
inline |
Definition at line 112 of file scopedbitmapaccess.hxx.
|
inline |
Definition at line 108 of file scopedbitmapaccess.hxx.
|
inline |
Definition at line 109 of file scopedbitmapaccess.hxx.
|
inline |
Definition at line 71 of file scopedbitmapaccess.hxx.
|
delete |
|
inline |
Definition at line 90 of file scopedbitmapaccess.hxx.
Referenced by Bitmap::Adjust(), OutputDevice::BlendBitmap(), OutputDevice::BlendBitmapWithAlpha(), Bitmap::CopyPixel(), Bitmap::CopyPixel_AlphaOptimized(), createBlendFrame(), vcl::bitmap::CreateFromData(), Bitmap::CreateMask(), Bitmap::CreateRegion(), Bitmap::Crop(), DetectEdges(), Bitmap::Dither(), vcl::bitmap::DrawAndClipBitmap(), OutputDevice::EmulateDrawTransparent(), BitmapLightenFilter::execute(), BitmapSobelGreyFilter::execute(), BitmapPopArtFilter::execute(), BitmapFastScaleFilter::execute(), BitmapInterpolateScaleFilter::execute(), BitmapSolarizeFilter::execute(), BitmapDuoToneFilter::execute(), BitmapEmbossGreyFilter::execute(), BitmapConvolutionMatrixFilter::execute(), BitmapSimpleColorQuantizationFilter::execute(), BitmapColorQuantizationFilter::execute(), BitmapSeparableUnsharpenFilter::execute(), BitmapScaleSuperFilter::execute(), BitmapGaussianSeparableBlurFilter::execute(), BitmapMonochromeFilter::execute(), Bitmap::Expand(), vcl::PNGReaderImpl::GetBitmapEx(), Bitmap::ImplConvertDown(), Bitmap::ImplMakeGreyscales(), ImplVectorizer::ImplVectorize(), Bitmap::Invert(), Bitmap::Mirror(), vcl::PNGWriterImpl::PNGWriterImpl(), Bitmap::Replace(), Bitmap::Rotate(), and JPEGWriter::Write().
|
private |
Definition at line 115 of file scopedbitmapaccess.hxx.
Referenced by vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::get(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::operator bool(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::operator!(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::operator*(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::operator->(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::operator=(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::reset(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::ScopedBitmapAccess(), and vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::~ScopedBitmapAccess().
|
private |
Definition at line 116 of file scopedbitmapaccess.hxx.
Referenced by vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::operator=(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::reset(), vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::ScopedBitmapAccess(), and vcl::ScopedBitmapAccess< BitmapWriteAccess, Bitmap,&Bitmap::AcquireWriteAccess >::~ScopedBitmapAccess().