zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Image.hxx
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2  * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3  *
4  * zenilib is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * zenilib is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef ZENI_IMAGE_HXX
19 #define ZENI_IMAGE_HXX
20 
21 #include <Zeni/Image.h>
22 
23 namespace Zeni {
24 
26  return m_color_space;
27  }
28 
29  const Uint8 * Image::get_data() const {
30  return m_data.data();
31  }
32 
34  return m_data.data();
35  }
36 
37  const Point2i & Image::size() const {
38  return m_size;
39  }
40 
41  int Image::width() const {
42  return m_size.x;
43  }
44 
45  int Image::height() const {
46  return m_size.y;
47  }
48 
49  bool Image::tileable() const {
50  return m_tileable;
51  }
52 
53 }
54 
55 #endif
const Uint8 * get_data() const
Get access to the raw image data.
Definition: Image.hxx:29
bool tileable() const
Determine if the given Image is tileable.
Definition: Image.hxx:49
const Point2i & size() const
Get the dimensions of the image.
Definition: Image.hxx:37
Color_Space color_space() const
Determine the Color_Space of the raw image data.
Definition: Image.hxx:25
int width() const
Get the number of pixels in the image in the x-direction.
Definition: Image.hxx:41
uint8_t Uint8
An unsigned 8-bit integer type.
Definition: SDL_stdinc.h:129
int height() const
Get the number of pixels in the image in the y-direction.
Definition: Image.hxx:45
Color_Space
Definition: Image.h:54
A 2D Point represented with integers.
Definition: Coordinate.h:85