FileWriter::CreateOutput

FileWriter::CreateOutput
virtual Output* CreateOutput(File* pout, int width, int height, int quality) const;
virtual Output* CreateOutput(File* pout) const;
Description

CreateOutput creates a JPEG output object, which is used to compress an image data into the specified file. CreateOutput requires Output::CopyCriticalParams call afterwards.

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 
Compression quality (value ranges from 1 to 100). 
Return Value

Pointer to Output, which is a JPEG output object for writing JPEG image data.