Replace old png writer in emfplus.cxx
Change-Id: Ibdc550e55d73ed71def6e5aef129520ab2062eeb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136936 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
parent
1d548a2bc7
commit
48eb565e2e
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
|||
#include <sfx2/sfxbasemodel.hxx>
|
||||
#include <test/unoapi_test.hxx>
|
||||
#include <vcl/BitmapReadAccess.hxx>
|
||||
#include <vcl/pngwrite.hxx>
|
||||
#include <vcl/filter/PngImageWriter.hxx>
|
||||
#include <vcl/gdimtf.hxx>
|
||||
#include <tools/stream.hxx>
|
||||
|
||||
|
@ -63,8 +63,8 @@ public:
|
|||
if (pEnv)
|
||||
{
|
||||
SvFileStream aStream(OUString::fromUtf8(pEnv), StreamMode::WRITE);
|
||||
vcl::PNGWriter aWriter(aResultBitmap);
|
||||
CPPUNIT_ASSERT(aWriter.Write(aStream));
|
||||
vcl::PngImageWriter aWriter(aStream);
|
||||
CPPUNIT_ASSERT(aWriter.write(aResultBitmap));
|
||||
}
|
||||
|
||||
return aResultBitmap.GetBitmap();
|
||||
|
|
Loading…
Reference in a new issue