ImageCompressionOptions.CreateGrayscaleJpeg Method (Int32)

Creates options for grayscale JPEG images with specified compression quality.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public static ImageCompressionOptions CreateGrayscaleJpeg(
	int jpegQuality
)
VB
Public Shared Function CreateGrayscaleJpeg ( 
	jpegQuality As Integer
) As ImageCompressionOptions

Parameters

jpegQuality
Type: System.Int32
The JPEG compression quality.

Return Value

Type: ImageCompressionOptions
The newly created options for grayscale JPEG images.

Remarks

The JPEG quality value should be between 1 and 100 inclusive.

The quality value of 100 preserves most details but produces biggest output.

See Also