Numworks Epsilon
1.4.1
Graphing Calculator Operating System
image.h
Go to the documentation of this file.
1
#ifndef ESCHER_IMAGE_H
2
#define ESCHER_IMAGE_H
3
4
#include <
kandinsky.h
>
5
6
class
Image
{
7
public
:
8
constexpr
Image
(
KDCoordinate
width
,
KDCoordinate
height
,
const
KDColor
*
pixels
) :
9
m_width(
width
), m_height(
height
), m_pixels(
pixels
) {}
10
KDCoordinate
width
()
const
{
return
m_width; }
11
KDCoordinate
height
()
const
{
return
m_height; }
12
const
KDColor
*
pixels
()
const
{
return
m_pixels; }
13
private
:
14
KDCoordinate
m_width;
15
KDCoordinate
m_height;
16
const
KDColor
* m_pixels;
17
};
18
19
#endif
KDCoordinate
int16_t KDCoordinate
Definition:
coordinate.h:6
Image
Definition:
image.h:6
Image::width
KDCoordinate width() const
Definition:
image.h:10
KDColor
Definition:
color.h:6
Image::pixels
const KDColor * pixels() const
Definition:
image.h:12
Image::Image
constexpr Image(KDCoordinate width, KDCoordinate height, const KDColor *pixels)
Definition:
image.h:8
Image::height
KDCoordinate height() const
Definition:
image.h:11
kandinsky.h
epsilon
escher
include
escher
image.h
Generated by
1.8.14