diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-06 08:20:06 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-06 08:20:06 +0000 |
commit | f66acebeb0d58a2e729cfc0f1ea3f2adbe9b9853 (patch) | |
tree | 9f1284d720241f5520146cecbe16b9879d5ceb79 /vcl | |
parent | 7fa6caae06664e85db79014d4d6622051ca5561e (diff) |
INTEGRATION: CWS vcl41 (1.3.240); FILE MERGED
2005/06/24 11:30:45 pl 1.3.240.1: #i49004# support 8 bit grayscale jpeg
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pdfextoutdevdata.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx index 35821aa9a350..a868251fb96a 100644 --- a/vcl/source/gdi/pdfextoutdevdata.cxx +++ b/vcl/source/gdi/pdfextoutdevdata.cxx @@ -2,9 +2,9 @@ * * $RCSfile: pdfextoutdevdata.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: pjunck $ $Date: 2004-10-28 10:32:52 $ + * last change: $Author: obo $ $Date: 2005-07-06 09:20:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -458,9 +458,10 @@ sal_Bool PageSyncData::PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIM } Bitmap aMask; SvMemoryStream aTmp; - aTmp << aGfxLink; - Size aSizePixel; - rWriter.DrawJPGBitmap( aTmp, aGraphic.GetSizePixel(), aOutputRect, aMask ); + const sal_uInt8* pData = aGfxLink.GetData(); + sal_uInt32 nBytes = aGfxLink.GetDataSize(); + aTmp.Write( pData, nBytes ); + rWriter.DrawJPGBitmap( aTmp, aGraphic.GetBitmap().GetBitCount() > 8, aGraphic.GetSizePixel(), aOutputRect, aMask ); if ( bClippingNeeded ) rWriter.Pop(); } |