Function rcg::storeImage

Function Documentation

std::string rcg::storeImage(const std::string &name, ImgFmt fmt, const Image &image, size_t yoffset = 0, size_t height = 0)

Stores the given image.

NOTE: An exception that is based on std::exception is thrown in case of an error, e.g. if input or output format is not supported.

Parameters:
  • name – Name of output file without suffix.

  • fmtImage file format.

  • imageImage to be stored.

  • yoffset – First image row to be stored.

  • height – Number of image rows to be stored. 0 means all rows.