AbstractWriter::CreateOutput
AbstractWriter::CreateOutput
virtual Output* CreateOutput(File* pout, int width, int height, int quality) const = 0;
virtual Output* CreateOutput(File* pout) const = 0;
Description
CreateOutput creates a JPEG output object, which is used to compress an image data into the specified file.
Parameters
Parameters |
Description |
File* pout |
Pointer to the output file where the image will be written. |
int width |
The width of the created image. |
int height |
The height of the created image. |
int quality |
The compression quality of JPEG data. ( Value ranges from 1-100) |
Return Value
A JPEG output object for writing JPEG image data.