147 const bool bOldMap =
mbMap;
149 bool bDrawGradientBackground =
false;
150 bool bDrawColorBackground =
false;
165 bDrawGradientBackground =
true;
171 aVDev->SetBackground( rWallpaper.
GetColor() );
172 aVDev->SetOutputSizePixel(
Size( nBmpWidth, nBmpHeight ) );
173 aVDev->DrawBitmapEx(
Point(), aBmpEx );
174 aBmpEx = aVDev->GetBitmapEx(
Point(), aVDev->GetOutputSizePixel() );
177 bDrawColorBackground =
true;
183 bDrawGradientBackground =
true;
185 bDrawColorBackground =
true;
189 if( bDrawGradientBackground )
191 else if( bDrawColorBackground && bTransparent )
194 bDrawColorBackground =
false;
206 aPos =
Point( 0, 0 );
207 aSize =
Size( nWidth, nHeight );
224 aBmpEx.
Scale( aSize );
233 aPos.AdjustX(( aSize.
Width() - nBmpWidth ) >> 1 );
237 aPos.AdjustX( aSize.
Width() - nBmpWidth);
241 aPos.AdjustY(( aSize.
Height() - nBmpHeight ) >> 1 );
245 aPos.AdjustX(( aSize.
Width() - nBmpWidth ) >> 1 );
246 aPos.AdjustY(( aSize.
Height() - nBmpHeight ) >> 1 );
250 aPos.AdjustX(aSize.
Width() - nBmpWidth);
251 aPos.AdjustY(( aSize.
Height() - nBmpHeight ) >> 1 );
255 aPos.AdjustY( aSize.
Height() - nBmpHeight );
259 aPos.AdjustX(( aSize.
Width() - nBmpWidth ) >> 1 );
260 aPos.AdjustY( aSize.
Height() - nBmpHeight );
264 aPos.AdjustX( aSize.
Width() - nBmpWidth );
265 aPos.AdjustY( aSize.
Height() - nBmpHeight );
282 nFirstX = aPos.X() + ( ( aSize.
Width() - nBmpWidth ) >> 1 );
283 nFirstY = aPos.Y() + ( ( aSize.
Height() - nBmpHeight ) >> 1 );
286 const tools::Long nOffX = ( nFirstX - nX ) % nBmpWidth;
287 const tools::Long nOffY = ( nFirstY - nY ) % nBmpHeight;
292 nStartX -= nBmpWidth;
295 nStartY -= nBmpHeight;
297 for(
tools::Long nBmpY = nStartY; nBmpY <= nBottom; nBmpY += nBmpHeight )
299 for(
tools::Long nBmpX = nStartX; nBmpX <= nRight; nBmpX += nBmpWidth )
312 if( bDrawColorBackground )
315 const Point aTmpPoint;
321 aWorkRect.Intersection( aColRect );
322 if( !aWorkRect.IsEmpty() )
325 aWorkRect.GetWidth(), aWorkRect.GetHeight(),
329 aWorkRect =
tools::Rectangle( 0, aPos.Y(), aPos.X() - 1, aPos.Y() + aBmpSize.Height() - 1 );
331 aWorkRect.Intersection( aColRect );
332 if( !aWorkRect.IsEmpty() )
335 aWorkRect.GetWidth(), aWorkRect.GetHeight(),
340 aOutRect.
Right(), aPos.Y() + aBmpSize.Height() - 1 );
342 aWorkRect.Intersection( aColRect );
343 if( !aWorkRect.IsEmpty() )
346 aWorkRect.GetWidth(), aWorkRect.GetHeight(),
353 aWorkRect.Intersection( aColRect );
354 if( !aWorkRect.IsEmpty() )
357 aWorkRect.GetWidth(), aWorkRect.GetHeight(),
380 const bool bOldMap =
mbMap;
const Wallpaper & GetBackground() const
SAL_DLLPRIVATE bool ImplIsRecordLayout() const
SAL_DLLPRIVATE void ImplReleaseCachedBitmap() const
bool IsTransparent() const
void DrawBitmapEx(const Point &rDestPt, const BitmapEx &rBitmapEx)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool Scale(const Size &rNewSize, BmpScaleFlag nScaleFlag=BmpScaleFlag::Default)
Scale the bitmap.
SAL_DLLPRIVATE bool is_double_buffered_window() const
void IntersectClipRegion(const tools::Rectangle &rRect)
WallpaperStyle GetStyle() const
void EnableMapMode(bool bEnable=true)
void DrawGradientWallpaper(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const Wallpaper &rWallpaper)
void DrawWallpaper(const tools::Rectangle &rRect, const Wallpaper &rWallpaper)
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
SAL_DLLPRIVATE const BitmapEx * ImplGetCachedBitmap() const
void DrawRect(const tools::Rectangle &rRect)
tools::Rectangle GetRect() const
Bitmap CreateDisplayBitmap(OutputDevice *pDisplay) const
const Color & GetColor() const
tools::Long Width() const
const Color & GetLineColor() const
virtual Color GetBackgroundColor() const
Size GetOutputSizePixel() const
SAL_DLLPRIVATE void DrawColorWallpaper(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const Wallpaper &rWallpaper)
bool IsTransparent() const
Gradient GetGradient() const
Bitmap GetBitmap(Color aTransparentReplaceColor) const
Point LogicToPixel(const Point &rLogicPt) const
VclPtr< VirtualDevice > mpAlphaVDev
BitmapEx GetBitmap() const
SAL_DLLPRIVATE void DrawBitmapWallpaper(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, const Wallpaper &rWallpaper)
virtual Color GetReadableFontColor(const Color &rFontColor, const Color &rBgColor) const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_WHITE
void SetRasterOp(RasterOp eRasterOp)
tools::Long Height() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
RasterOp GetRasterOp() const
const Size & GetSizePixel() const
bool IsDeviceOutputNecessary() const
void Push(PushFlags nFlags=PushFlags::ALL)
void DrawGradient(const tools::Rectangle &rRect, const Gradient &rGradient)
SAL_DLLPRIVATE void ImplSetCachedBitmap(BitmapEx &rBmp) const
const Color & GetFillColor() const