Export (0) Print
Expand All

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:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public:
property Int32Rect SourceRect {
	Int32Rect get ();
	void set (Int32Rect value);
}
/** @property */
public Int32Rect get_SourceRect ()

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

public function get SourceRect () : Int32Rect

public function set SourceRect (value : Int32Rect)

<object>
  <object.SourceRect>
    <Int32Rect .../>
  </object.SourceRect>
</object>
<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

Community Additions

ADD
Show:
© 2014 Microsoft