Doxygen
Loading...
Searching...
No Matches
image.cpp File Reference
#include <vector>
#include <cmath>
#include "image.h"
#include "lodepng.h"
#include "config.h"
Include dependency graph for image.cpp:

Go to the source code of this file.

Classes

struct  Color
 Helper struct representing a RGBA color. More...
struct  Image::Private
struct  ColoredImage::Private

Typedefs

typedef unsigned char Byte

Variables

const int charSetWidth =80
const int charHeight =12
const int numChars =96
const unsigned short charPos [numChars]
const unsigned char charWidth [numChars]
const unsigned char fontRaw [charSetWidth *charHeight]

Typedef Documentation

◆ Byte

typedef unsigned char Byte

Definition at line 23 of file image.cpp.

Variable Documentation

◆ charHeight

const int charHeight =12

Definition at line 35 of file image.cpp.

Referenced by Image::writeChar().

◆ charPos

const unsigned short charPos[numChars]
Initial value:
=
{
0, 5, 8, 13, 20, 27, 38, 47,
50, 54, 58, 65, 72, 76, 83, 87,
91, 98,105,112,119,126,133,140,
147,154,161,164,167,174,181,188,
195,207,216,224,233,242,250,258,
267,276,279,286,294,301,312,321,
331,339,349,357,365,372,380,389,
400,409,418,427,430,434,437,443,
450,453,460,467,474,481,488,492,
499,506,509,512,518,521,530,537,
544,551,557,562,568,571,578,585,
594,600,607,613,617,620,624,631
}

Definition at line 38 of file image.cpp.

Referenced by Image::writeChar().

◆ charSetWidth

const int charSetWidth =80

Definition at line 34 of file image.cpp.

Referenced by Image::writeChar().

◆ charWidth

const unsigned char charWidth[numChars]
Initial value:
=
{
5, 3, 5, 7, 7,11, 9, 3,
4, 4, 7, 7, 4, 7, 4, 4,
7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 3, 3, 7, 7, 7, 7,
12, 9, 8, 9, 9, 8, 8, 9,
9, 3, 7, 8, 7,11, 9,10,
8,10, 8, 8, 7, 8, 9,11,
9, 9, 9, 3, 4, 3, 6, 7,
3, 7, 7, 7, 7, 7, 4, 7,
7, 3, 3, 6, 3, 9, 7, 7,
7, 6, 5, 6, 3, 7, 7, 9,
6, 7, 6, 4, 3, 4, 7, 5
}

Definition at line 54 of file image.cpp.

Referenced by Image::stringLength, Image::writeChar(), and Image::writeString().

◆ fontRaw

const unsigned char fontRaw[charSetWidth *charHeight]

Definition at line 71 of file image.cpp.

Referenced by Image::writeChar().

◆ numChars

const int numChars =96

Definition at line 36 of file image.cpp.

Referenced by Trace::trunc().