API Reference
Class
HtmlImageDataUri
Represents an image data URI split into media type, encoding metadata, and payload.
Inheritance
- Object
- HtmlImageDataUri
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Method HtmlImageDataUri.TryParse
Methods
public Int64 EstimateDecodedByteCount() #Returns:
Int64Estimates decoded byte count without allocating decoded content when possible.
public static String GetFileExtension(String mediaType) #Returns:
StringGets the suggested file extension for an image media type.
Parameters
- mediaType System.String
public Boolean TryDecodeBytes(out Byte[] bytes) #Returns:
BooleanAttempts to decode the image payload as bytes.
Parameters
- bytes System.Byte[]@
public static Boolean TryParse(String source, out HtmlImageDataUri dataUri) #Returns:
BooleanTries to parse an image data URI.
Parameters
- source System.String
- dataUri OfficeIMO.Html.HtmlImageDataUri@
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Metadata { get; } #Data URI metadata without the leading data: prefix.
public String MediaType { get; } #Declared image media type, for example image/png.
public String Data { get; } #Raw payload after the comma separator.
public Boolean IsBase64 { get; } #Indicates whether the payload is base64 encoded.
public String FileExtension { get; } #Suggested file extension for the media type, including the leading dot.