DrawingContext.DrawImage Metoda

Definicja

Rysuje obraz do regionu zdefiniowanego przez określony Rectelement .

Przeciążenia

DrawImage(ImageSource, Rect)

Rysuje obraz do regionu zdefiniowanego przez określony Rectelement .

DrawImage(ImageSource, Rect, AnimationClock)

Rysuje obraz do regionu zdefiniowanego przez określony Rect i stosuje określony zegar animacji.

DrawImage(ImageSource, Rect)

Rysuje obraz do regionu zdefiniowanego przez określony Rectelement .

public:
 abstract void DrawImage(System::Windows::Media::ImageSource ^ imageSource, System::Windows::Rect rectangle);
public abstract void DrawImage (System.Windows.Media.ImageSource imageSource, System.Windows.Rect rectangle);
abstract member DrawImage : System.Windows.Media.ImageSource * System.Windows.Rect -> unit
Public MustOverride Sub DrawImage (imageSource As ImageSource, rectangle As Rect)

Parametry

imageSource
ImageSource

Obraz do rysowania.

rectangle
Rect

Region, w którym ma być rysowanie bitmapSource.

Dotyczy

DrawImage(ImageSource, Rect, AnimationClock)

Rysuje obraz do regionu zdefiniowanego przez określony Rect i stosuje określony zegar animacji.

public:
 abstract void DrawImage(System::Windows::Media::ImageSource ^ imageSource, System::Windows::Rect rectangle, System::Windows::Media::Animation::AnimationClock ^ rectangleAnimations);
public abstract void DrawImage (System.Windows.Media.ImageSource imageSource, System.Windows.Rect rectangle, System.Windows.Media.Animation.AnimationClock rectangleAnimations);
abstract member DrawImage : System.Windows.Media.ImageSource * System.Windows.Rect * System.Windows.Media.Animation.AnimationClock -> unit
Public MustOverride Sub DrawImage (imageSource As ImageSource, rectangle As Rect, rectangleAnimations As AnimationClock)

Parametry

imageSource
ImageSource

Obraz do rysowania.

rectangle
Rect

Region, w którym ma być rysowanie bitmapSource.

rectangleAnimations
AnimationClock

Zegar, z którym można animować rozmiar i wymiary prostokąta lub null bez animacji. Ten zegar musi zostać utworzony na podstawie obiektu AnimationTimeline , który może animować Rect obiekty.

Dotyczy