Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
17 lines
600 B
C++
17 lines
600 B
C++
|
|
#pragma once
|
|
|
|
#include "BitmapRef.hpp"
|
|
|
|
namespace msdfgen {
|
|
|
|
/// Saves the bitmap as a simple RGBA file, which can be decoded trivially.
|
|
bool saveRgba(const BitmapConstRef<byte, 1> &bitmap, const char *filename);
|
|
bool saveRgba(const BitmapConstRef<byte, 3> &bitmap, const char *filename);
|
|
bool saveRgba(const BitmapConstRef<byte, 4> &bitmap, const char *filename);
|
|
bool saveRgba(const BitmapConstRef<float, 1> &bitmap, const char *filename);
|
|
bool saveRgba(const BitmapConstRef<float, 3> &bitmap, const char *filename);
|
|
bool saveRgba(const BitmapConstRef<float, 4> &bitmap, const char *filename);
|
|
|
|
}
|