vcl/source/treelist/transfer.cxx |    2 +-
 vcl/workben/icontest.cxx         |    6 +++---
 vcl/workben/svpclient.cxx        |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 9540041bdd523de3265a893184fd816574f352e2
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Mon Aug 25 08:21:53 2025 +0200
Commit:     Noel Grandin <noelgran...@gmail.com>
CommitDate: Mon Aug 25 13:41:00 2025 +0200

    BitmapEx->Bitmap in vcl
    
    now that Bitmap supports transparency
    
    Change-Id: Iab5fe533a9669f6f536d43bc132d9bb55ac60ab9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190148
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/source/treelist/transfer.cxx b/vcl/source/treelist/transfer.cxx
index 2841f0f7f15c..6870f0c1ab5b 100644
--- a/vcl/source/treelist/transfer.cxx
+++ b/vcl/source/treelist/transfer.cxx
@@ -1598,7 +1598,7 @@ bool TransferableDataHelper::GetBitmapEx( const 
DataFlavor& rFlavor, Bitmap& rBm
             GraphicFilter& rFilter = GraphicFilter::GetGraphicFilter();
             Graphic aGraphic;
             if (rFilter.ImportGraphic(aGraphic, u"", *xStm) == ERRCODE_NONE)
-                rBmp = Bitmap(aGraphic.GetBitmapEx());
+                rBmp = aGraphic.GetBitmap();
         }
 
         if(rBmp.IsEmpty())
diff --git a/vcl/workben/icontest.cxx b/vcl/workben/icontest.cxx
index 0d6146b6fc1d..8ec49ff7d6b8 100644
--- a/vcl/workben/icontest.cxx
+++ b/vcl/workben/icontest.cxx
@@ -54,7 +54,7 @@ class MyWorkWindow : public WorkWindow
 
 public:
     Graphic maGraphic;
-    BitmapEx *mpBitmap;
+    Bitmap *mpBitmap;
     VclPtr<FixedBitmap> mpFixedBitmap;
 
     MyWorkWindow( vcl::Window* pParent, WinBits nWinStyle );
@@ -106,8 +106,8 @@ void MyWorkWindow::Paint(vcl::RenderContext& 
rRenderContext, const tools::Rectan
     Bitmap aEmpty;
     mpFixedBitmap->SetBitmap( aEmpty );
     GraphicConversionParameters aConv( aSize );
-    mpBitmap = new BitmapEx(maGraphic.GetBitmapEx( aConv ));
-    mpFixedBitmap->SetBitmap( Bitmap(*mpBitmap) );
+    mpBitmap = new Bitmap(maGraphic.GetBitmap( aConv ));
+    mpFixedBitmap->SetBitmap( *mpBitmap );
     mpFixedBitmap->SetSizePixel( aSize );
 
     WorkWindow::Paint(rRenderContext, rRect);
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx
index ec9623ab0d1c..595b1b4df6aa 100644
--- a/vcl/workben/svpclient.cxx
+++ b/vcl/workben/svpclient.cxx
@@ -269,7 +269,7 @@ IMPL_LINK_NOARG( MyWin, SelectHdl, ListBox&, void)
     GraphicFilter &rFilter = GraphicFilter::GetGraphicFilter();
     rFilter.ImportGraphic( aGraphicResult, u"import", aStream );
 
-    BitmapEx aBitmap = aGraphicResult.GetBitmapEx();
+    Bitmap aBitmap = aGraphicResult.GetBitmap();
 
     SAL_INFO("vcl", "got bitmap of size " << aBitmap.GetSizePixel().Width() << 
"x" << aBitmap.GetSizePixel().Height());
     Size aFixedSize( aBitmap.GetSizePixel() );

Reply via email to