file¶
File: samarium/util/file.hpp
Read and write files
-
namespace file¶
Typedefs
-
using Path = std::filesystem::path¶
Functions
-
void write([[maybe_unused]] Targa tag, const Image &image, const Path &file_path = date_time_str() + ".tga")¶
-
void write([[maybe_unused]] Pam tag, const Image &image, const Path &file_path = date_time_str() + ".pam")¶
Write image to file_path in the NetBPM PAM format.
See https://wikipedia.org/wiki/Netpbm#PAM_graphics_format
- Parameters:
tag – Use the PAM format (tag dispatch)
image –
file_path –
-
void write([[maybe_unused]] Bmp tag, const Image &image, const Path &file_path = date_time_str() + ".bmp")¶
Variables
-
struct Targa¶
-
struct Pam¶
-
struct Png¶
-
struct Bmp¶
-
using Path = std::filesystem::path¶