This documentation is archived and is not being maintained.

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)
XML Namespace:

Public Property SourceRect As Int32Rect
Dim instance As BitmapImage
Dim value As Int32Rect

value = instance.SourceRect

instance.SourceRect = value
/** @property */
public Int32Rect get_SourceRect ()

/** @property */
public void set_SourceRect (Int32Rect value)

public function get SourceRect () : Int32Rect

public function set SourceRect (value : Int32Rect)

    <Int32Rect .../>
<object SourceRect="Int32Rect" .../>

Property Value

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0