PeachDrawing.Core
PeachDrawing.Core.RenderContext
RenderContext.SupportsImageType(string) Method
Whether this context can decode an image of the media type mimeType (image/avif), which a document
asks to choose between the <source type> alternatives of a <picture>. The default is the formats
PeachImage reads (PNG, JPEG, GIF, WebP, AVIF, JPEG XL, BMP, TIFF, ICO) and SVG; a context that decodes with a platform codec
overrides it with what that codec reads. A type that is not an image type, or is unknown, is not supported.
public virtual bool SupportsImageType(string mimeType);
Parameters
mimeType System.String
the media type, without parameters
Returns
System.Boolean
true when an image of that type can be decoded