96 #include <type_traits>
105 const std::string &fileName);
113 template<
class PixelFormat>
117 static_assert(std::is_same<PixelFormat, Zivid::ColorRGBA>::value,
"PixelFormat must be Zivid::ColorRGBA.");
124 void save(
const std::string &fileName)
const
126 return Detail::saveColorRGBAImageImpl(*
this, fileName);
131 :
Array2D<PixelFormat>(std::move(a))
#define ZIVID_CORE_EXPORT
Definition: CoreExport.h:101
Two-dimensional container of data
Definition: Array2D.h:119
A 2-dimensional image
Definition: Image.h:115
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:124
Image()=default
Create an empty image
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99