save-bmp.h 554 B

1234567891011121314151617
  1. #pragma once
  2. #include "BitmapRef.hpp"
  3. namespace msdfgen {
  4. /// Saves the bitmap as a BMP file.
  5. bool saveBmp(const BitmapConstRef<byte, 1> &bitmap, const char *filename);
  6. bool saveBmp(const BitmapConstRef<byte, 3> &bitmap, const char *filename);
  7. bool saveBmp(const BitmapConstRef<byte, 4> &bitmap, const char *filename);
  8. bool saveBmp(const BitmapConstRef<float, 1> &bitmap, const char *filename);
  9. bool saveBmp(const BitmapConstRef<float, 3> &bitmap, const char *filename);
  10. bool saveBmp(const BitmapConstRef<float, 4> &bitmap, const char *filename);
  11. }