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