Click or drag to resize

ImageCreate Method (SDFDoc, Byte, Int32, Int32, Int32, ColorSpace, ImageInputFilter)

Directly embed the image that is already compressed using the Image::InputFilter format. The function can be used to pass-through pre-compressed image data.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public static Image Create(
	SDFDoc doc,
	byte[] image_data,
	int width,
	int height,
	int bpc,
	ColorSpace color_space,
	ImageInputFilter input_format
)

Parameters

doc
Type: pdftron.SDFSDFDoc
A document to which the image should be added. The 'Doc' object can be obtained using Obj::GetDoc() or PDFDoc::GetSDFDoc().
image_data
Type: SystemByte
The stream or buffer containing compressed image data. The compression format must match the input_format parameter.
width
Type: SystemInt32
The width of the image, in samples.
height
Type: SystemInt32
The height of the image, in samples.
bpc
Type: SystemInt32
The number of bits used to represent each color component.
color_space
Type: pdftron.PDFColorSpace
The color space in which image samples are specified.
input_format
Type: pdftron.PDFImageInputFilter
Image::InputFilter describing the format of pre-compressed image data.

Return Value

Type: Image
PDF::Image object representing the embedded image.
See Also