save-png.h 599 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(const BitmapConstRef<byte, 1> &bitmap, const char *filename);
  7. bool savePng(const BitmapConstRef<byte, 3> &bitmap, const char *filename);
  8. bool savePng(const BitmapConstRef<byte, 4> &bitmap, const char *filename);
  9. bool savePng(const BitmapConstRef<float, 1> &bitmap, const char *filename);
  10. bool savePng(const BitmapConstRef<float, 3> &bitmap, const char *filename);
  11. bool savePng(const BitmapConstRef<float, 4> &bitmap, const char *filename);
  12. }
  13. #endif