|
Packit |
a7402c |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
|
Packit |
a7402c |
/* libwpg
|
|
Packit |
a7402c |
* Version: MPL 2.0 / LGPLv2.1+
|
|
Packit |
a7402c |
*
|
|
Packit |
a7402c |
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
a7402c |
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit |
a7402c |
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit |
a7402c |
*
|
|
Packit |
a7402c |
* Major Contributor(s):
|
|
Packit |
a7402c |
* Copyright (C) 2007 Ariya Hidayat (ariya@kde.org)
|
|
Packit |
a7402c |
* Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
|
|
Packit |
a7402c |
*
|
|
Packit |
a7402c |
* For minor contributions see the git repository.
|
|
Packit |
a7402c |
*
|
|
Packit |
a7402c |
* Alternatively, the contents of this file may be used under the terms
|
|
Packit |
a7402c |
* of the GNU Lesser General Public License Version 2.1 or later
|
|
Packit |
a7402c |
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
|
Packit |
a7402c |
* applicable instead of those above.
|
|
Packit |
a7402c |
*
|
|
Packit |
a7402c |
* For further information visit http://libwpg.sourceforge.net
|
|
Packit |
a7402c |
*/
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
/* "This product is not manufactured, approved, or supported by
|
|
Packit |
a7402c |
* Corel Corporation or Corel Corporation Limited."
|
|
Packit |
a7402c |
*/
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
#ifndef __WPGBITMAP_H__
|
|
Packit |
a7402c |
#define __WPGBITMAP_H__
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
#include <memory>
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
#include "WPGColor.h"
|
|
Packit |
a7402c |
#include <librevenge/librevenge.h>
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
namespace libwpg
|
|
Packit |
a7402c |
{
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
class WPGBitmap
|
|
Packit |
a7402c |
{
|
|
Packit |
a7402c |
public:
|
|
Packit |
a7402c |
WPGBitmap(int width, int height, int verticalResolution, int horizontalResolution, bool verticalFlip=false, bool horizontalFlip=false);
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
WPGBitmap(const WPGBitmap &);
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
WPGBitmap &operator=(const WPGBitmap &);
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
void copyFrom(const WPGBitmap &);
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
~WPGBitmap();
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
// return width in pixel
|
|
Packit |
a7402c |
int width() const;
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
// return height in pixel
|
|
Packit |
a7402c |
int height() const;
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
// return vertical resolution in pixels per inch
|
|
Packit |
a7402c |
int vres() const;
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
// return horizontal resolution in pixels per inch
|
|
Packit |
a7402c |
int hres() const;
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
void setPixel(int x, int y, const WPGColor &color;;
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
const librevenge::RVNGBinaryData &getDIB() const;
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
private:
|
|
Packit |
a7402c |
class Private;
|
|
Packit |
a7402c |
std::unique_ptr<Private> const d;
|
|
Packit |
a7402c |
};
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
} // namespace libwpg
|
|
Packit |
a7402c |
|
|
Packit |
a7402c |
#endif // __WPGBITMAP_H__
|
|
Packit |
a7402c |
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
|