save-png.h 626 B

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