libopenraw
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
libopenraw++
bitmapdata.h
1
/*
2
* libopenraw - bitmapdata.h
3
*
4
* Copyright (C) 2007 Hubert Figuiere
5
*
6
* This library is free software: you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public License
8
* as published by the Free Software Foundation, either version 3 of
9
* the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library. If not, see
18
* <http://www.gnu.org/licenses/>.
19
*/
20
21
22
#ifndef __OPENRAW_BITMAPDATA_H__
23
#define __OPENRAW_BITMAPDATA_H__
24
25
26
#include <libopenraw/libopenraw.h>
27
28
29
namespace
OpenRaw {
30
31
class
BitmapData
32
{
33
public
:
34
typedef ::or_data_type DataType;
35
36
BitmapData
();
37
virtual
~
BitmapData
();
38
40
void
swap
(
BitmapData
& with);
41
43
DataType
dataType
()
const
;
45
void
setDataType
(DataType _type);
46
47
virtual
void
*allocData(
const
size_t
s);
49
size_t
size
()
const
;
50
void
*data()
const
;
51
52
uint32_t x()
const
;
53
uint32_t y()
const
;
55
uint32_t
bpc
()
const
;
57
void
setBpc
(uint32_t _bpc);
58
60
virtual
void
setDimensions
(uint32_t x, uint32_t y);
61
62
private
:
63
class
Private
;
64
BitmapData::Private
*d;
65
67
BitmapData
(
const
BitmapData
& f);
69
BitmapData
& operator=(
const
BitmapData
&);
70
};
71
72
}
73
74
75
76
#endif
Generated on Sat Jan 12 2013 13:31:43 for libopenraw by
1.8.3