setJPEGQuality()

Description

Sets the quality of JPEG files or JPEG-encoded PDF files.

Syntax

ImageViewerObject.io.setJPEGQuality(iValue);

Parameters

<short> iValue: the value to set

Return value

bool

Remarks

The default value of JPEGQuality is 80.

The valid range is 0-100. The higher the JPEGQuality property, the better the quality and the bigger the size of the file.

When an error occurs, check getErrorCode() or getErrorString() for error information.

Example

var imageviewer = DCSObject.getImageViewer("ImageViewerContainer");  // Get a specified image viewer
imageviewer.io.setJPEGQuality(90);

See also

.io.getJPEGQuality()
.io.httpUpload()
.io.httpUploadAsync()

Is this page helpful?

Leave a Reply

Your email address will not be published.