C++ API Library Reference
Public Static Functions | List of all members
JpegEncoder Class Reference

The JpegEncoder class encodes the specified image as a JPEG with the specified quality.

Public Static Functions

static ByteArray JpegCompress (const Image &image, Int32 quality)

Usage Description

static ByteArray JpegCompress ( const Image image,
Int32  quality 

Encodes the specified image with the specified quality. Returns a byte array containing the encoded image.

imageThe image to encode
qualityAn integer between 0 and 100 specifying the encoding quality