summaryrefslogtreecommitdiff
path: root/thirdparty/msdfgen/core/save-bmp.h
blob: 98f852921ffc1b62c82ea35fbad3fda30763373e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#pragma once

#include "BitmapRef.hpp"

namespace msdfgen {

/// Saves the bitmap as a BMP file.
bool saveBmp(const BitmapConstRef<byte, 1> &bitmap, const char *filename);
bool saveBmp(const BitmapConstRef<byte, 3> &bitmap, const char *filename);
bool saveBmp(const BitmapConstRef<byte, 4> &bitmap, const char *filename);
bool saveBmp(const BitmapConstRef<float, 1> &bitmap, const char *filename);
bool saveBmp(const BitmapConstRef<float, 3> &bitmap, const char *filename);
bool saveBmp(const BitmapConstRef<float, 4> &bitmap, const char *filename);

}