Writer
Description
Writer image data to a file, using a specific file format and settings.
The formatAnd and formatOr fields can be used to reduce or extend the output pixel format. First, the intersection of the pixel format flags of the input image and the flags of formatAnd is computed. Then, the union of the resulting flags and formatOr is computed. The final flags are used to hint the image writer, which may choose a different bit-depth or color mode, for example.