Table of Contents

Method CreateFromPicture

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CreateFromPicture(SKPicture?, int, int, Color?)

Creates SkiaImageHandler from SKPicture using the specified width and height.

public static SkiaImageHandler CreateFromPicture(SKPicture? picture, int width, int height, Color? color)

Parameters

picture SKPicture

Picture to use as a source of pixel data.

width int

Image width.

height int

Image height.

color Color

Overrides default fill color.

Returns

SkiaImageHandler

Image instance with dimensions specified in width and height.