Click or drag to resize

ImageCreateAsync Method (SDFDoc, IRandomAccessStream)

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

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


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

Return Value

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