Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property Int32Rect SourceRect {
	Int32Rect get();
	void set(Int32Rect value);
}

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:
© 2017 Microsoft