diff options
Diffstat (limited to 'vcl/source/gdi/salgdilayout.cxx')
-rw-r--r-- | vcl/source/gdi/salgdilayout.cxx | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx index 2b465ce19c38..797cfb91d55f 100644 --- a/vcl/source/gdi/salgdilayout.cxx +++ b/vcl/source/gdi/salgdilayout.cxx @@ -681,11 +681,11 @@ void SalGraphics::DrawMask( const SalTwoRect& rPosAry, drawMask( rPosAry, rSalBitmap, nMaskColor ); } -std::shared_ptr<SalBitmap> SalGraphics::GetBitmap( tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const OutputDevice& rOutDev ) +std::shared_ptr<SalBitmap> SalGraphics::GetBitmap( tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const OutputDevice& rOutDev, bool bWithoutAlpha ) { if( (m_nLayout & SalLayoutFlags::BiDiRtl) || rOutDev.IsRTLEnabled() ) mirror( nX, nWidth, rOutDev ); - return getBitmap( nX, nY, nWidth, nHeight ); + return getBitmap( nX, nY, nWidth, nHeight, bWithoutAlpha ); } Color SalGraphics::GetPixel( tools::Long nX, tools::Long nY, const OutputDevice& rOutDev ) @@ -822,36 +822,6 @@ bool SalGraphics::GetNativeControlRegion( ControlType nType, ControlPart nPart, return forWidget()->getNativeControlRegion(nType, nPart, rControlRegion, nState, aValue, OUString(), rNativeBoundingRegion, rNativeContentRegion); } -bool SalGraphics::BlendBitmap( const SalTwoRect& rPosAry, - const SalBitmap& rBitmap, - const OutputDevice& rOutDev ) -{ - if( (m_nLayout & SalLayoutFlags::BiDiRtl) || rOutDev.IsRTLEnabled() ) - { - SalTwoRect aPosAry2 = rPosAry; - mirror( aPosAry2.mnDestX, aPosAry2.mnDestWidth, rOutDev ); - return blendBitmap( aPosAry2, rBitmap ); - } - else - return blendBitmap( rPosAry, rBitmap ); -} - -bool SalGraphics::BlendAlphaBitmap( const SalTwoRect& rPosAry, - const SalBitmap& rSrcBitmap, - const SalBitmap& rMaskBitmap, - const SalBitmap& rAlphaBitmap, - const OutputDevice& rOutDev ) -{ - if( (m_nLayout & SalLayoutFlags::BiDiRtl) || rOutDev.IsRTLEnabled() ) - { - SalTwoRect aPosAry2 = rPosAry; - mirror( aPosAry2.mnDestX, aPosAry2.mnDestWidth, rOutDev ); - return blendAlphaBitmap( aPosAry2, rSrcBitmap, rMaskBitmap, rAlphaBitmap ); - } - else - return blendAlphaBitmap( rPosAry, rSrcBitmap, rMaskBitmap, rAlphaBitmap ); -} - bool SalGraphics::DrawAlphaBitmap( const SalTwoRect& rPosAry, const SalBitmap& rSourceBitmap, const SalBitmap& rAlphaBitmap, |