语言

CroppedBitmap.SourceRect 属性

定义

获取或设置位图裁剪为的矩形区域。

public:
 property System::Windows::Int32Rect SourceRect { System::Windows::Int32Rect get(); void set(System::Windows::Int32Rect value); };
public System.Windows.Int32Rect SourceRect { get; set; }
member this.SourceRect : System.Windows.Int32Rect with get, set
Public Property SourceRect As Int32Rect

属性值

位图裁剪为的矩形区域。 默认值为 Empty。

注解

一个CroppedBitmap设置为SourceRect呈现整个图像的数据集Int32Rect.Empty。

位图边界内未完全位于位图边界内的矩形将不会呈现。

Dependency 属性信息

项目 价值
标识符字段 SourceRectProperty
元数据属性设置为 true None

适用于