diff options
Diffstat (limited to 'drawinglayer/source/tools/converters.cxx')
-rw-r--r-- | drawinglayer/source/tools/converters.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drawinglayer/source/tools/converters.cxx b/drawinglayer/source/tools/converters.cxx index 64810162305e..968b67bef4c0 100644 --- a/drawinglayer/source/tools/converters.cxx +++ b/drawinglayer/source/tools/converters.cxx @@ -100,7 +100,8 @@ namespace drawinglayer if(bDoSaveForVisualControl) { SvFileStream aNew("c:\\test_content.png", StreamMode::WRITE|StreamMode::TRUNC); - vcl::PNGWriter aPNGWriter(aContent); + BitmapEx aContentEx = BitmapEx(aContent); + vcl::PNGWriter aPNGWriter(aContentEx); aPNGWriter.Write(aNew); } #endif @@ -130,7 +131,8 @@ namespace drawinglayer if(bDoSaveForVisualControl) { SvFileStream aNew("c:\\test_alpha.png", StreamMode::WRITE|StreamMode::TRUNC); - vcl::PNGWriter aPNGWriter(aAlpha); + BitmapEx aAlphaEx = BitmapEx(aAlpha); + vcl::PNGWriter aPNGWriter(aAlphaEx); aPNGWriter.Write(aNew); } #endif |