getJPEGQuality()

Description

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

Syntax

ImageViewerObject.io.getJPEGQuality();

Return value

<short>

If it fails to get the JPEG quality, it returns null.

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.getJPEGQuality();

See also

.io.setJPEGQuality()
.io.httpUpload()
.io.httpUploadAsync()

Is this page helpful?

Leave a Reply

Your email address will not be published.