Editar

Compartilhar via


SKRect.Inflate Method

Definition

Overloads

Inflate(Single, Single)

Enlarges this SKRect structure by the specified amount.

Inflate(SKSize)

Enlarges this SKRect structure by the specified amount.

Inflate(SKRect, Single, Single)

Creates and returns an enlarged copy of the specified SKRect structure. The copy is enlarged by the specified amount and the original rectangle remains unmodified.

Inflate(Single, Single)

Enlarges this SKRect structure by the specified amount.

public void Inflate (float x, float y);

Parameters

x
Single

The amount to inflate this SKRect structure horizontally.

y
Single

The amount to inflate this SKRect structure vertically.

Applies to

Inflate(SKSize)

Enlarges this SKRect structure by the specified amount.

public void Inflate (SkiaSharp.SKSize size);

Parameters

size
SKSize

The amount to inflate this SKRect.

Applies to

Inflate(SKRect, Single, Single)

Creates and returns an enlarged copy of the specified SKRect structure. The copy is enlarged by the specified amount and the original rectangle remains unmodified.

public static SkiaSharp.SKRect Inflate (SkiaSharp.SKRect rect, float x, float y);

Parameters

rect
SKRect

The SKRect to be copied. This rectangle is not modified.

x
Single

The amount to enlarge the copy of the rectangle horizontally.

y
Single

The amount to enlarge the copy of the rectangle vertically.

Returns

The enlarged SKRect.

Applies to