SKCanvas.DrawImageLattice Method

Definition

Overloads

DrawImageLattice(SKImage, SKLattice, SKRect, SKPaint)

Draws the image, stretched or shrunk differentially to fit into the destination rectangle.

DrawImageLattice(SKImage, Int32[], Int32[], SKRect, SKPaint)

Draws the image, stretched or shrunk differentially to fit into the destination rectangle.

DrawImageLattice(SKImage, SKLattice, SKRect, SKPaint)

Draws the image, stretched or shrunk differentially to fit into the destination rectangle.

public void DrawImageLattice (SkiaSharp.SKImage image, SkiaSharp.SKLattice lattice, SkiaSharp.SKRect dst, SkiaSharp.SKPaint paint = default);

Parameters

image
SKImage

The image to draw.

lattice
SKLattice

The lattice that describes the areas of the image to stretch or shrink.

dst
SKRect

The region to draw the image into.

paint
SKPaint

The paint to use when drawing the image, or null.

Applies to

DrawImageLattice(SKImage, Int32[], Int32[], SKRect, SKPaint)

Draws the image, stretched or shrunk differentially to fit into the destination rectangle.

public void DrawImageLattice (SkiaSharp.SKImage image, int[] xDivs, int[] yDivs, SkiaSharp.SKRect dst, SkiaSharp.SKPaint paint = default);

Parameters

image
SKImage

The image to draw.

xDivs
Int32[]

The x-coordinates that divide the image vertically, describing the areas to stretch or shrink.

yDivs
Int32[]

The Y-coordinates that divide the image horizontally, describing the areas to stretch or shrink.

dst
SKRect

The region to draw the image into.

paint
SKPaint

The paint to use when drawing the image, or null.

Applies to