DrawingContext.DrawImage Método

Definição

Desenha uma imagem na região definida pelo Rect especificado.

Sobrecargas

DrawImage(ImageSource, Rect)

Desenha uma imagem na região definida pelo Rect especificado.

DrawImage(ImageSource, Rect, AnimationClock)

Desenha uma imagem na região definida pelo Rect especificado e aplica o relógio de animação especificado.

DrawImage(ImageSource, Rect)

Desenha uma imagem na região definida pelo Rect especificado.

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)

Parâmetros

imageSource
ImageSource

A imagem a ser desenhada.

rectangle
Rect

A região na qual desenhar bitmapSource.

Aplica-se a

DrawImage(ImageSource, Rect, AnimationClock)

Desenha uma imagem na região definida pelo Rect especificado e aplica o relógio de animação especificado.

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)

Parâmetros

imageSource
ImageSource

A imagem a ser desenhada.

rectangle
Rect

A região na qual desenhar bitmapSource.

rectangleAnimations
AnimationClock

O relógio com o qual o tamanho e as dimensões do retângulo são animados ou null para nenhuma animação. Esse relógio deve ser criado com base em um AnimationTimeline que pode animar objetos Rect.

Aplica-se a