ISVGPropertyResolvingContext.TryGetHrefAsByteArray

ISVGPropertyResolvingContext.TryGetHrefAsByteArray method

Tries to get the HREF as a byte array, with the specified size, format, and cancellation token.

public bool TryGetHrefAsByteArray(Url href, Size size, out byte[] data, out WebImageFormat format, 
    CancellationToken cancellationToken)
ParameterTypeDescription
hrefUrlThe URL representing the HREF.
sizeSizeThe desired size of the image.
dataByte[]&The resulting byte array of the image data.
formatWebImageFormat&The resulting WebImageFormat of the image.
cancellationTokenCancellationTokenThe cancellation token.

Return Value

true if the operation was successful; otherwise, false.

See Also