Kaydet (Commit) c72db36c authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#100838 no transparency support on using original jpg data path

This became a problem since...

commit 76ec54e8
Author: Michael Meeks <michael.meeks@collabora.com>
Date:   Mon Feb 8 14:24:15 2016 +0000

    tdf#97662 - Try to preserve original compressed JPEGs harder.

    Avoiding de-compressing and re-compressing them saves lots of time too.

for the default JPEG Compress + Reduce Image resolution case

but appears to always be a problem with the Lossless - Reduce Image resolution
case.

Change-Id: I24c69a59a16d69817e402cd87f84e744ee146a66
üst d7da58ae
......@@ -442,7 +442,8 @@ bool PageSyncData::PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIMtfAc
Graphic aGraphic( mGraphics.front() );
mGraphics.pop_front();
mParaInts.pop_front(); //Transparency
sal_Int32 nTransparency = mParaInts.front();
mParaInts.pop_front();
aOutputRect = mParaRects.front();
mParaRects.pop_front();
aVisibleOutputRect = mParaRects.front();
......@@ -463,7 +464,15 @@ bool PageSyncData::PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIMtfAc
aVisibleOutputRect.Right(), aVisibleOutputRect.Bottom() ) ) );
rWriter.SetClipRegion( aRect);
}
Bitmap aMask;
if (nTransparency)
{
AlphaMask aAlphaMask(aGraphic.GetSizePixel());
aAlphaMask.Erase(nTransparency);
aMask = aAlphaMask.GetBitmap();
}
SvMemoryStream aTmp;
const sal_uInt8* pData = aGfxLink.GetData();
sal_uInt32 nBytes = aGfxLink.GetDataSize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment