ActivityDesignerPaint.DrawImage Método

Definição

Desenha uma imagem na superfície do designer de atividades.

Sobrecargas

Name Description
DrawImage(Graphics, Image, Rectangle, DesignerContentAlignment)

Desenha uma imagem na superfície do designer de atividades usando a Graphics, an Image, a Rectangle, e a DesignerContentAlignment.

DrawImage(Graphics, Image, Rectangle, Rectangle, DesignerContentAlignment, Single, Boolean)

Desenha uma imagem na superfície do designer da atividade usando um Graphics, um Image, uma fonte e destino Rectangle, um DesignerContentAlignment, um número de ponto flutuante de precisão simples, e um valor Booleano.

DrawImage(Graphics, Image, Rectangle, DesignerContentAlignment)

Desenha uma imagem na superfície do designer de atividades usando a Graphics, an Image, a Rectangle, e a DesignerContentAlignment.

public:
 static void DrawImage(System::Drawing::Graphics ^ graphics, System::Drawing::Image ^ image, System::Drawing::Rectangle destination, System::Workflow::ComponentModel::Design::DesignerContentAlignment alignment);
public static void DrawImage(System.Drawing.Graphics graphics, System.Drawing.Image image, System.Drawing.Rectangle destination, System.Workflow.ComponentModel.Design.DesignerContentAlignment alignment);
static member DrawImage : System.Drawing.Graphics * System.Drawing.Image * System.Drawing.Rectangle * System.Workflow.ComponentModel.Design.DesignerContentAlignment -> unit
Public Shared Sub DrawImage (graphics As Graphics, image As Image, destination As Rectangle, alignment As DesignerContentAlignment)

Parâmetros

graphics
Graphics

O Graphics que se desenha a imagem.

image
Image

O Image desenho.

destination
Rectangle

O Rectangle que define os limites da imagem a desenhar.

alignment
DesignerContentAlignment

O DesignerContentAlignment que especifica como a imagem está alinhada no retângulo delimitador.

Exceções

graphics, image ou destination contém uma referência nula (Nothing em Visual Basic).

Observações

Quando usas esta versão de DrawImage, o retângulo de origem é definido para o tamanho, em pixels, da imagem, a definição de transparência está definida para 1.0f, e desenhar tons de cinzento não é permitido.

Aplica-se a

DrawImage(Graphics, Image, Rectangle, Rectangle, DesignerContentAlignment, Single, Boolean)

Desenha uma imagem na superfície do designer da atividade usando um Graphics, um Image, uma fonte e destino Rectangle, um DesignerContentAlignment, um número de ponto flutuante de precisão simples, e um valor Booleano.

public:
 static void DrawImage(System::Drawing::Graphics ^ graphics, System::Drawing::Image ^ image, System::Drawing::Rectangle destination, System::Drawing::Rectangle source, System::Workflow::ComponentModel::Design::DesignerContentAlignment alignment, float transparency, bool grayscale);
public static void DrawImage(System.Drawing.Graphics graphics, System.Drawing.Image image, System.Drawing.Rectangle destination, System.Drawing.Rectangle source, System.Workflow.ComponentModel.Design.DesignerContentAlignment alignment, float transparency, bool grayscale);
static member DrawImage : System.Drawing.Graphics * System.Drawing.Image * System.Drawing.Rectangle * System.Drawing.Rectangle * System.Workflow.ComponentModel.Design.DesignerContentAlignment * single * bool -> unit
Public Shared Sub DrawImage (graphics As Graphics, image As Image, destination As Rectangle, source As Rectangle, alignment As DesignerContentAlignment, transparency As Single, grayscale As Boolean)

Parâmetros

graphics
Graphics

O Graphics que se desenha a imagem.

image
Image

O Image desenho.

destination
Rectangle

O Rectangle que define os limites da imagem.

source
Rectangle

O Rectangle que define a origem da imagem.

alignment
DesignerContentAlignment

O DesignerContentAlignment que especifica como a imagem está alinhada no retângulo delimitador.

transparency
Single

Um número de ponto flutuante de precisão simples que define as definições de transparência da imagem.

grayscale
Boolean

true desenhar a imagem em tons de cinzento; caso contrário, false.

Exceções

graphics, image, destination ou source contém uma referência nula (Nothing em Visual Basic).

-ou-

transparency é menor que 0, ou superior a 1,0f.

Aplica-se a