106 const std::string &fileName);
114 template<
class PixelFormat>
118 static_assert(std::is_same<PixelFormat, Zivid::ColorRGBA>::value,
"PixelFormat must be Zivid::ColorRGBA.");
125 void save(
const std::string &fileName)
const
127 return Detail::saveColorRGBAImageImpl(*
this, fileName);
132 :
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:116
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:125
Image()=default
Create an empty image
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99