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:
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
int16_t KDCoordinate
Definition: coordinate.h:6
Definition: image.h:6
KDCoordinate width() const
Definition: image.h:10
Definition: color.h:6
const KDColor * pixels() const
Definition: image.h:12
constexpr Image(KDCoordinate width, KDCoordinate height, const KDColor *pixels)
Definition: image.h:8
KDCoordinate height() const
Definition: image.h:11