API Reference
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 String DecodeText() #StringDecodes the payload using its declared charset, or UTF-8 when none is declared.
public Int64 EstimateDecodedByteCount() #Int64Estimates decoded byte count without allocating decoded content when possible.
public static String GetFileExtension(String mediaType) #StringGets the suggested file extension for an image media type.
Parameters
- mediaType System.String
public Boolean TryDecodeBytes(out Byte[] bytes) #BooleanAttempts to decode the image payload as bytes.
Parameters
- bytes System.Byte[]@
public Boolean TryDecodeText(out String text) #BooleanAttempts to decode the payload using its declared charset, or UTF-8 when none is declared.
Parameters
- text System.String@
public static Boolean TryParse(String source, out HtmlImageDataUri dataUri) #BooleanTries to parse an image data URI.
Parameters
- source System.String
- dataUri OfficeIMO.Html.HtmlImageDataUri@
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- 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.