smntc
an in-memory multimodal graph database
Loading...
Searching...
No Matches
Bmp.h
Go to the documentation of this file.
1#ifndef __BMP_HEADER__
2#define __BMP_HEADER__
3
4struct Bmp;
5
7struct Bmp *Bmp_destruct(
8 struct Bmp *this
9);
10
11unsigned int Bmp_getWidth(
12 struct Bmp *this
13);
14
16unsigned int Bmp_getHeight(
17 struct Bmp *this
18);
19
25unsigned long Bmp_getLength(
26 struct Bmp *this
27);
28
31 struct Bmp *this,
32 int horizontal,
33 int vertical,
34 unsigned char *red,
35 unsigned char *green,
36 unsigned char *blue,
37 int *error
38);
39
42 struct Bmp *this,
43 int index,
44 unsigned char *red,
45 unsigned char *green,
46 unsigned char *blue,
47 int *error
48);
49
68struct Bmp *Bmp_readFile(
69 const char *filename,
70 int *error
71);
72
74void Bmp_writeFile(
75 struct Bmp *this,
76 const char *filename,
77 int *error
78);
79
80#endif
struct Bmp * Bmp_readFile(const char *filename, int *error)
It loads an image file with the bmp format into memory.
Definition Bmp.c:65
unsigned long Bmp_getLength(struct Bmp *this)
It supplies the number of pixels.
Definition Bmp.c:44
void Bmp_getPixelOfLine(struct Bmp *this, int index, unsigned char *red, unsigned char *green, unsigned char *blue, int *error)
It supplies three colors of a pixel when the horizontal and vertical positions of a raster are provid...
Definition Bmp.c:58
unsigned int Bmp_getWidth(struct Bmp *this)
Definition Bmp.c:34
unsigned int Bmp_getHeight(struct Bmp *this)
It supplies the height of an image.
Definition Bmp.c:39
struct Bmp * Bmp_destruct(struct Bmp *this)
It destructs a managing object for one image.
Definition Bmp.c:22
void Bmp_writeFile(struct Bmp *this, const char *filename, int *error)
It writes an image in a file in bmp format.
Definition Bmp.c:242
void Bmp_getPixelOfRaster(struct Bmp *this, int horizontal, int vertical, unsigned char *red, unsigned char *green, unsigned char *blue, int *error)
It supplies three colors of a pixel when the horizontal and vertical positions of a raster are provid...
Definition Bmp.c:49
It stores an image in memory.
Definition Bmp.c:13