Worldstone
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
utils.h
1 //
2 // Created by Lectem on 05/11/2016.
3 //
4 
5 #pragma once
6 
7 #include <stdint.h>
8 #include "ImageView.h"
9 #include "Palette.h"
10 
11 namespace WorldStone
12 {
13 namespace Utils
14 {
25 void exportToPGM(const char* output, const uint8_t* data, int width, int height, int maxVal = -1);
27 void exportToPGM(const char* output, ImageView<const uint8_t> image, int maxVal = -1);
28 
37 void exportToPPM(const char* output, const uint8_t* data, int width, int height,
38  const Palette& palette);
39 } // namespace Utils
40 } // namespace WorldStone
Implements image manipulation helpers.