ImageEncodeOptions Class
The options of OffscreenCanvas.convertToBlob() (https://html.spec.whatwg.org/multipage/canvas.html#imageencodeoptions).
public sealed class ImageEncodeOptionsConstructors
| Name | Description |
|---|---|
| ImageEncodeOptions() |
ImageEncodeOptions()
CanvasTypes.cspublic ImageEncodeOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Quality | Gets the quality from 0 to 1 of the lossy formats (JPEG, WebP), or null for the default quality. |
| Type | Gets the MIME type of the image file (PNG when the type is not supported). |
Quality
CanvasTypes.csGets the quality from 0 to 1 of the lossy formats (JPEG, WebP), or null for the default quality.
public double? Quality { get; init; }Property value
See also
Type
CanvasTypes.csGets the MIME type of the image file (PNG when the type is not supported).
public string Type { get; init; }