DrawingContext.DrawImage Metoda

Definice

Nakreslí obrázek do oblasti definované zadaným Rectobjektem .

Přetížení

Name Description
DrawImage(ImageSource, Rect)

Nakreslí obrázek do oblasti definované zadaným Rectobjektem .

DrawImage(ImageSource, Rect, AnimationClock)

Nakreslí obrázek do oblasti definované zadaným parametrem Rect a použije zadané animační hodiny.

DrawImage(ImageSource, Rect)

Nakreslí obrázek do oblasti definované zadaným Rectobjektem .

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

Obrázek, který chcete nakreslit.

rectangle
Rect

Oblast, ve které chcete kreslit bitmapSource.

Platí pro

DrawImage(ImageSource, Rect, AnimationClock)

Nakreslí obrázek do oblasti definované zadaným parametrem Rect a použije zadané animační hodiny.

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

Obrázek, který chcete nakreslit.

rectangle
Rect

Oblast, ve které chcete kreslit bitmapSource.

rectangleAnimations
AnimationClock

Hodiny, se kterými chcete animovat velikost a rozměry obdélníku, nebo null pro žádnou animaci. Tyto hodiny musí být vytvořeny z objektu AnimationTimeline , který může animovat Rect objekty.

Platí pro