Image.ToDataUrlAsync Method
Generates a data URL for this image asynchronously.
public Task<string> ToDataUrlAsync( CancellationToken cancellationToken = default )
Parameters
- cancellationToken CancellationToken (Optional)
- Cancellation token that can be used to cancel the operation.
Return Value
Task<String>Data URL for this image.
Exceptions
Exception | Condition |
---|---|
PermissionException | Content extraction from this document is forbidden by the document author. Not thrown if the document is opened with the owner password (see Password). |
OperationCanceledException | The operation was cancelled because the cancellation token was triggered. |