save-png.h 562 B

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