CreateBrush(IImage, Nullable, Nullable, Nullable, Nullable, Nullable, Nullable, Nullable, Transform?, Nullable) Method

Definition

Assembly Svg.Controls.Skia.Avalonia.dll

Creates a Avalonia.Media.VisualBrush configured with the provided image and optional overrides.

public static IBrush CreateBrush(IImage image, Stretch? stretch = default(Stretch? ), AlignmentX? alignmentX = default(AlignmentX? ), AlignmentY? alignmentY = default(AlignmentY? ), TileMode? tileMode = default(TileMode? ), RelativeRect? destinationRect = default(RelativeRect? ), RelativeRect? sourceRect = default(RelativeRect? ), double? opacity = default(double? ), Transform? transform = null, RelativePoint? transformOrigin = default(RelativePoint? ))

Parameters

image
Avalonia.Media.IImage

The SVG image instance rendered by the brush.

stretch
Nullable<Stretch>

Optional stretch applied to the brush.

alignmentX
Nullable<AlignmentX>

Optional horizontal alignment applied to the brush.

alignmentY
Nullable<AlignmentY>

Optional vertical alignment applied to the brush.

tileMode
Nullable<TileMode>

Optional tile mode applied to the brush.

destinationRect
Nullable<RelativeRect>

Optional destination rectangle for the brush content.

sourceRect
Nullable<RelativeRect>

Optional source rectangle cropping the brush content.

opacity
Nullable<Double>

Optional opacity multiplier applied to the brush.

transform
Avalonia.Media.Transform

Optional transform applied to the brush.

transformOrigin
Nullable<RelativePoint>

Optional transform origin applied when transform is set.

Returns