DrawingContext.DrawImage Método

Definição

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

Sobrecargas

Nome Description
DrawImage(ImageSource, Rect)

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

DrawImage(ImageSource, Rect, AnimationClock)

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

DrawImage(ImageSource, Rect)

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

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 especificado Rect 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 animar o tamanho e as dimensões do retângulo ou null sem animação. Esse relógio deve ser criado a partir de um AnimationTimeline que possa animar Rect objetos.

Aplica-se a