LibreOffice Module vcl (master)
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
vcl
filter
PngImageReader.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
*/
10
11
#ifndef INCLUDED_VCL_FILTER_PNGIMAGEREADER_HXX
12
#define INCLUDED_VCL_FILTER_PNGIMAGEREADER_HXX
13
14
#include <
vcl/dllapi.h
>
15
16
#include <com/sun/star/uno/Reference.hxx>
17
18
namespace
com::sun::star::task
19
{
20
class
XStatusIndicator;
21
}
22
23
class
BitmapEx
;
24
class
SvStream
;
25
26
namespace
vcl
27
{
28
class
VCL_DLLPUBLIC
PngImageReader
29
{
30
SvStream
&
mrStream
;
31
css::uno::Reference<css::task::XStatusIndicator>
mxStatusIndicator
;
32
33
public
:
34
PngImageReader
(
SvStream
& rStream);
35
36
// Returns true if image was successfully read without errors.
37
// A usable bitmap may be returned even if there were errors (e.g. incomplete image).
38
bool
read(
BitmapEx
& rBitmap);
39
// Returns a bitmap without indicating if there were errors.
40
BitmapEx
read();
41
42
// Returns the contents of the msOG chunk (containing a Gif image), if it exists.
43
// Does not change position in the stream.
44
static
std::unique_ptr<sal_uInt8[]> getMicrosoftGifChunk(
SvStream
& rStream,
45
sal_Int32* chunkSize =
nullptr
);
46
};
47
48
}
// namespace vcl
49
50
#endif
51
52
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl::PngImageReader::mxStatusIndicator
css::uno::Reference< css::task::XStatusIndicator > mxStatusIndicator
Definition:
PngImageReader.hxx:31
VCL_DLLPUBLIC
#define VCL_DLLPUBLIC
Definition:
dllapi.h:29
vcl
com::sun::star::task
BitmapEx
Definition:
bitmapex.hxx:44
vcl::PngImageReader::mrStream
SvStream & mrStream
Definition:
PngImageReader.hxx:30
dllapi.h
vcl::PngImageReader
Definition:
PngImageReader.hxx:28
SvStream
Generated on Thu Apr 15 2021 20:46:21 for LibreOffice Module vcl (master) by
1.8.10