52 #include <type_traits>
61 const std::string &fileName);
69 template<
class PixelFormat>
73 static_assert(std::is_same<PixelFormat, Zivid::ColorRGBA>::value,
"PixelFormat must be Zivid::ColorRGBA.");
80 void save(
const std::string &fileName)
const
82 return Detail::saveColorRGBAImageImpl(*
this, fileName);
87 :
Array2D<PixelFormat>(std::move(a))
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:57
Two-dimensional container of data
Definition: Array2D.h:75
A 2-dimensional image
Definition: Image.h:71
void save(const std::string &fileName) const
Save the image to a file. The supported file type is PNG with extension .png. This method will throw ...
Definition: Image.h:80
Image()=default
Create an empty image
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:55