Click or drag to resize

ImageCreateAsync Method (SDFDoc, IRandomAccessStream, Obj)

Create and embed an Image from a random access stream representing the image.

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public static IAsyncOperation<Image> CreateAsync(
	SDFDoc doc,
	IRandomAccessStream imageStream,
	Obj encoder_hints
)

Parameters

doc
Type: pdftron.SDFSDFDoc
A document to which the image should be added. To obtain SDFDoc from PDFDoc use PDFDoc.GetSDFDoc().
imageStream
Type: IRandomAccessStream
The stream representing a JPEG/PNG/TIFF/BMP/EMF/WMF image, not just raw pixel data.
encoder_hints
Type: pdftron.SDFObj
The encoder hints

Return Value

Type: IAsyncOperationImage
When this operation completes, it returns an Image object representing the created image.
See Also