Click or drag to resize

PdfiumFPDFCodecs_JpegEncode(IntPtr, Int32, Byte) Method

Encodes the specified bitmap image to jpeg format and returns the result in a byte array.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 5.1.3
Syntax
public static byte[] FPDFCodecs_JpegEncode(
	IntPtr hBitmap,
	int quality = 75,
	byte[] iccBuf = null
)

Parameters

hBitmap  IntPtr
Handle to a PDF bitmap image that should be encoded as jpeg.
quality  Int32  (Optional)
Compression quality in range 0 - 100
iccBuf  Byte  (Optional)
Optional ICC profile.

Return Value

Byte
An array of bytes containing the encoded data; Null if any error occurred.
See Also