SourceRect Property

BitmapImage.SourceRect Property

 

Gets or sets the rectangle that is used as the source of the BitmapImage.

Namespace:   System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

public Int32Rect SourceRect { get; set; }

Property Value

Type: System.Windows.Int32Rect

The rectangle that is used as the source of the BitmapImage. The default is Empty.

Identifier field

SourceRectProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft