ImageBitmapOptions Class

The options of createImageBitmap() (https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmapoptions).

public sealed class ImageBitmapOptions

Constructors

NameDescription
ImageBitmapOptions()

ImageBitmapOptions()

ImageBitmap.cs
public ImageBitmapOptions()

No documentation is available.

Properties

NameDescription
ColorSpaceConversionGets whether the colors of a decoded image are converted to sRGB.
ImageOrientationGets the orientation of the image.
PremultiplyAlphaGets whether the colors are premultiplied by their alpha.
ResizeHeightGets the height of the bitmap, or null for the height of the source rectangle (or the one of its aspect ratio when ImageBitmapOptions.ResizeWidth is set).
ResizeQualityGets the quality of the scaling.
ResizeWidthGets the width of the bitmap, or null for the width of the source rectangle (or the one of its aspect ratio when ImageBitmapOptions.ResizeHeight is set).

ColorSpaceConversion

ImageBitmap.cs

Gets whether the colors of a decoded image are converted to sRGB.

public ColorSpaceConversion ColorSpaceConversion { get; init; }

ImageOrientation

ImageBitmap.cs

PremultiplyAlpha

ImageBitmap.cs

Gets whether the colors are premultiplied by their alpha.

public PremultiplyAlpha PremultiplyAlpha { get; init; }

ResizeHeight

ImageBitmap.cs

Gets the height of the bitmap, or null for the height of the source rectangle (or the one of its aspect ratio when ImageBitmapOptions.ResizeWidth is set).

public uint? ResizeHeight { get; init; }

ResizeQuality

ImageBitmap.cs

Gets the quality of the scaling.

public ResizeQuality ResizeQuality { get; init; }

ResizeWidth

ImageBitmap.cs

Gets the width of the bitmap, or null for the width of the source rectangle (or the one of its aspect ratio when ImageBitmapOptions.ResizeHeight is set).

public uint? ResizeWidth { get; init; }