Table of Contents

Method CreateBitmapCanvas

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

CreateBitmapCanvas(SKSize, float, bool)

Creates canvas on the bitmap with the specified size and scaling factor.

public static SKCanvas CreateBitmapCanvas(SKSize size, float scaleFactor, bool isTransparent = true)

Parameters

size SKSize

Size of the bitmap.

scaleFactor float

Scaling factor.

isTransparent bool

Whether canvas is transparent.

Returns

SKCanvas

CreateBitmapCanvas(SKBitmap, float)

Creates canvas on the specified bitmap.

public static SKCanvas CreateBitmapCanvas(SKBitmap bitmap, float scaleFactor)

Parameters

bitmap SKBitmap

Bitmap to create canvas on.

scaleFactor float

Initial scale factor for the canvas.

Returns

SKCanvas