Click or drag to resize
DigitalRuneImageSourceRectangle Property
Gets or sets the source rectangle that defines the region of the Texture that should be displayed. This is a game object property.

Namespace: DigitalRune.Game.UI.Controls
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public Nullable<Rectangle> SourceRectangle { get; set; }

Property Value

Type: NullableRectangle
The source rectangle. Can be if the whole texture should be displayed.
Remarks

Special notes for Windows Universal (UWP):
Usually, the type of this property is a nullable rectangle. In UWP nullable game object properties cannot be used because of a bug in .NET Native. Therefore, the type of this property is not nullable in the UWP build. Use an Empty rectangle if the whole texture should be displayed.

See Also