WPGBitmap.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* libwpg
3 * Version: MPL 2.0 / LGPLv2.1+
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 * Major Contributor(s):
10 * Copyright (C) 2007 Ariya Hidayat (ariya@kde.org)
11 * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
12 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 *
20 * For further information visit http://libwpg.sourceforge.net
21 */
22
23/* "This product is not manufactured, approved, or supported by
24 * Corel Corporation or Corel Corporation Limited."
25 */
26
27#ifndef __WPGBITMAP_H__
28#define __WPGBITMAP_H__
29
30#include "WPGColor.h"
31#include <librevenge/librevenge.h>
32
33namespace libwpg
34{
35
37{
38public:
39 WPGBitmap(int width, int height, int verticalResolution, int horizontalResolution, bool verticalFlip=false, bool horizontalFlip=false);
40
41 WPGBitmap(const WPGBitmap &);
42
44
45 void copyFrom(const WPGBitmap &);
46
47 ~WPGBitmap();
48
49 // return width in pixel
50 int width() const;
51
52 // return height in pixel
53 int height() const;
54
55 // return vertical resolution in pixels per inch
56 int vres() const;
57
58 // return horizontal resolution in pixels per inch
59 int hres() const;
60
61 void setPixel(int x, int y, const WPGColor &color);
62
63 const ::librevenge::RVNGBinaryData &getDIB() const;
64
65private:
66 class Private;
67 Private *const d;
68};
69
70} // namespace libwpg
71
72#endif // __WPGBITMAP_H__
73/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
Definition: WPGBitmap.cpp:67
Definition: WPGBitmap.h:37
void copyFrom(const WPGBitmap &)
Definition: WPGBitmap.cpp:118
int width() const
Definition: WPGBitmap.cpp:128
WPGBitmap & operator=(const WPGBitmap &)
Definition: WPGBitmap.cpp:112
Private *const d
Definition: WPGBitmap.h:67
void setPixel(int x, int y, const WPGColor &color)
Definition: WPGBitmap.cpp:148
int hres() const
Definition: WPGBitmap.cpp:143
const ::librevenge::RVNGBinaryData & getDIB() const
Definition: WPGBitmap.cpp:156
int height() const
Definition: WPGBitmap.cpp:133
int vres() const
Definition: WPGBitmap.cpp:138
~WPGBitmap()
Definition: WPGBitmap.cpp:97
Definition: WPGColor.h:35
Definition: libwpg_utils.cpp:26

Generated for libwpg by doxygen 1.9.5