BitmapEx->Bitmap in Wallpaper

Now that Bitmap supports transparency

Change-Id: I1934f1a4776ee8b54aa7758ea0da2eadc0b4a698
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190316
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin
2025-08-28 12:38:54 +02:00
parent d008800730
commit ad00a72115
5 changed files with 5 additions and 10 deletions
+2 -3
View File
@@ -22,7 +22,7 @@
#include <tools/color.hxx>
#include <tools/gen.hxx>
#include <vcl/bitmapex.hxx>
#include <vcl/bitmap.hxx>
#include <vcl/gradient.hxx>
#include <vcl/dllapi.h>
#include <optional>
@@ -60,8 +60,7 @@ public:
Wallpaper( const Wallpaper& rWallpaper );
Wallpaper( Wallpaper&& rWallpaper );
Wallpaper( const Color& rColor );
explicit Wallpaper( const BitmapEx& rBmpEx );
explicit Wallpaper( const Bitmap& rBmpEx );
explicit Wallpaper( const Bitmap& rBmp );
~Wallpaper();
void SetColor( const Color& rColor );
+1
View File
@@ -23,6 +23,7 @@
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <tools/debug.hxx>
#include <vcl/bitmapex.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/decoview.hxx>
#include <vcl/event.hxx>
+1 -1
View File
@@ -1866,7 +1866,7 @@ bool SwViewShell::DrawAppBackgroundBitmap(vcl::RenderContext* rRenderContext, co
if (aAppBackImg.IsEmpty())
return false;
Wallpaper aWallpaper((BitmapEx(aAppBackImg)));
Wallpaper aWallpaper(aAppBackImg);
if (ThemeColors::GetAppBackBmpDrawType() == u"Tiled"_ustr)
aWallpaper.SetStyle(WallpaperStyle::Tile);
else if (ThemeColors::GetAppBackBmpDrawType() == u"Stretched"_ustr)
+1
View File
@@ -11,6 +11,7 @@
#include <test/outputdevice.hxx>
#include <vcl/BitmapWriteAccess.hxx>
#include <vcl/bitmapex.hxx>
#include <salgdi.hxx>
#include <map>
-6
View File
@@ -130,12 +130,6 @@ Wallpaper::Wallpaper( const Color& rColor )
meStyle = WallpaperStyle::Tile;
}
Wallpaper::Wallpaper( const BitmapEx& rBmpEx )
{
maBitmap = Bitmap(rBmpEx);
meStyle = WallpaperStyle::Tile;
}
Wallpaper::Wallpaper( const Bitmap& rBmp )
{
maBitmap = rBmp;