35 pContext = std::make_shared<JPEGReader>(
rInputStream, nImportFlags );
36 pJPEGReader =
static_cast<JPEGReader*
>( pContext.get() );
39 ReadState eReadState = pJPEGReader->
Read( rGraphic, nImportFlags, ppAccess );
54 const css::uno::Sequence<css::beans::PropertyValue>* pFilterData,
57 JPEGWriter aJPEGWriter( rOutputStream, pFilterData, pExportWasGrey );
58 bool bReturn = aJPEGWriter.
Write( rGraphic );
void SetReaderContext(const std::shared_ptr< GraphicReader > &pReader)
std::shared_ptr< GraphicReader > & GetReaderContext()
ReadState Read(Graphic &rGraphic, GraphicFilterImportFlags nImportFlags, BitmapScopedWriteAccess *ppAccess)
bool Write(const Graphic &rGraphic)
This template handles BitmapAccess the RAII way.
Reference< XInputStream > rInputStream
bool ExportJPEG(SvStream &rOutputStream, const Graphic &rGraphic, const css::uno::Sequence< css::beans::PropertyValue > *pFilterData, bool *pExportWasGrey)
VCL_DLLPUBLIC bool ImportJPEG(SvStream &rInputStream, Graphic &rGraphic, GraphicFilterImportFlags nImportFlags, BitmapScopedWriteAccess *ppAccess)