Lire en anglais Modifier

Partager via


ImageBrush Constructors

Definition

Initializes a new instance of the ImageBrush class.

Overloads

ImageBrush()

Initializes a new instance of the ImageBrush class with no content.

ImageBrush(ImageSource)

Initializes a new instance of the ImageBrush class that paints an area with the specified image.

ImageBrush()

Initializes a new instance of the ImageBrush class with no content.

C#
public ImageBrush();

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ImageBrush(ImageSource)

Initializes a new instance of the ImageBrush class that paints an area with the specified image.

C#
public ImageBrush(System.Windows.Media.ImageSource image);

Parameters

image
ImageSource

The image to display.

Applies to

.NET Framework 4.8.1 et autres versions
Produit Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10