CroppedBitmap.SourceRect 屬性

定義

取得或設定點陣圖將裁剪成的矩形區域。Gets or sets the rectangular area that the bitmap is cropped to.

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

屬性值

點陣圖將裁剪成的矩形區域。The rectangular area that the bitmap is cropped to. 預設為 EmptyThe default is Empty.

備註

將設定為Int32Rect.Empty的會呈現整個影像。 SourceRect CroppedBitmapA CroppedBitmap with a SourceRect set to Int32Rect.Empty will render the entire image.

不完全在點陣圖界限內的矩形將不會呈現。A rectangle that is not fully within the bounds of the bitmap will not render.

相依性屬性資訊Dependency Property Information

識別碼欄位Identifier field SourceRectProperty
中繼資料屬性設定為trueMetadata properties set to true None

適用於