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: 255.255.255.255
Syntax public static IAsyncOperation<Image> CreateAsync(
SDFDoc doc,
IRandomAccessStream imageStream
)
Public Shared Function CreateAsync (
doc As SDFDoc,
imageStream As IRandomAccessStream
) As IAsyncOperation(Of Image)
public:
static IAsyncOperation<Image^>^ CreateAsync(
[InAttribute] SDFDoc^ doc,
[InAttribute] IRandomAccessStream^ imageStream
)
pdftron.PDF.Image.CreateAsync = function(doc, imageStream);
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.
Return Value
Type:
IAsyncOperationImageWhen this operation completes, it returns an
Image object representing the created image.
See Also