113 template<
class PixelFormat>
118 std::is_same<PixelFormat, Zivid::ColorRGBA>::value || std::is_same<PixelFormat, Zivid::ColorBGRA>::value,
119 "PixelFormat must be Zivid::ColorRGBA or Zivid::ColorBGRA.");
126 void save(
const std::string &fileName)
const
128 return Detail::saveImageImpl(*
this, fileName);
133 :
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 types are PNG (.png), JPEG (.jpg, .jpeg) and BMP (....
Definition: Image.h:126
Image()=default
Create an empty image
The main Zivid namespace. All Zivid code is found here
Definition: Application.h:99