1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #ifndef INCLUDED_VCL_FILTER_PNGIMAGEREADER_HXX
12 #define INCLUDED_VCL_FILTER_PNGIMAGEREADER_HXX
14 #include <sal/config.h>
19 #include <vcl/dllapi.h>
20 #include <vcl/BinaryDataContainer.hxx>
22 #include <com/sun/star/uno/Reference.hxx>
24 namespace com::sun::star::task
26 class XStatusIndicator
;
34 class VCL_DLLPUBLIC PngImageReader
37 css::uno::Reference
<css::task::XStatusIndicator
> mxStatusIndicator
;
40 PngImageReader(SvStream
& rStream
);
42 // Returns true if image was successfully read without errors.
43 // A usable bitmap may be returned even if there were errors (e.g. incomplete image).
44 bool read(BitmapEx
& rBitmap
);
45 // Returns a bitmap without indicating if there were errors.
48 // Returns the contents of the msOG chunk (containing a Gif image), if it exists.
49 // Does not change position in the stream.
50 static BinaryDataContainer
getMicrosoftGifChunk(SvStream
& rStream
);
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */