save-png.h 581 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "../core/BitmapRef.hpp"
  3. #ifndef MSDFGEN_DISABLE_PNG
  4. namespace msdfgen {
  5. /// Saves the bitmap as a PNG file.
  6. bool savePng(BitmapConstSection<byte, 1> bitmap, const char *filename);
  7. bool savePng(BitmapConstSection<byte, 3> bitmap, const char *filename);
  8. bool savePng(BitmapConstSection<byte, 4> bitmap, const char *filename);
  9. bool savePng(BitmapConstSection<float, 1> bitmap, const char *filename);
  10. bool savePng(BitmapConstSection<float, 3> bitmap, const char *filename);
  11. bool savePng(BitmapConstSection<float, 4> bitmap, const char *filename);
  12. }
  13. #endif