ImageEncodeOptions Class

The options of OffscreenCanvas.convertToBlob() (https://html.spec.whatwg.org/multipage/canvas.html#imageencodeoptions).

public sealed class ImageEncodeOptions

Constructors

NameDescription
ImageEncodeOptions()

ImageEncodeOptions()

CanvasTypes.cs
public ImageEncodeOptions()

No documentation is available.

Properties

NameDescription
QualityGets the quality from 0 to 1 of the lossy formats (JPEG, WebP), or null for the default quality.
TypeGets the MIME type of the image file (PNG when the type is not supported).

Gets the quality from 0 to 1 of the lossy formats (JPEG, WebP), or null for the default quality.

public double? Quality { get; init; }

Gets the MIME type of the image file (PNG when the type is not supported).

public string Type { get; init; }