BitmapImage.Clone 方法

定義

建立這個 BitmapImage 的可修改複製品,深層複製這個物件的值。Creates a modifiable clone of this BitmapImage, making deep copies of this object's values.

public:
 System::Windows::Media::Imaging::BitmapImage ^ Clone();
public System.Windows.Media.Imaging.BitmapImage Clone ();
override this.Clone : unit -> System.Windows.Media.Imaging.BitmapImage
Public Function Clone () As BitmapImage

傳回

目前物件的可修改複本。A modifiable clone of the current object. 即使來源的 IsFrozen 屬性為 true.,複製物件的 IsFrozen 屬性仍為 falseThe cloned object's IsFrozen property is false even if the source's IsFrozen property is true.

備註

這個方法是用來產生凍結Freezable物件 (或任何Freezable物件) 的可修改複本。This method is used to produce modifiable copies of frozen Freezable objects (or any Freezable object). 為了方便起見, 這個方法會遮蔽繼承的版本。For convenience, this method shadows the inherited version.

如需詳細資訊,請參閱Freezable.CloneFor more information, see Freezable.Clone.

複製相依性屬性時, 這個方法會複製資源參考和資料系結 (它們可能無法再解析), 但不會複製動畫或其目前的值。When copying dependency properties, this method copies resource references and data bindings (they might no longer resolve) but not animations or their current values.

適用於

另請參閱