ActivityDesignerPaint.DrawImage 메서드

정의

활동 디자이너 화면에 이미지를 그립니다.

오버로드

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

, a, 및 Graphics를 사용하여 ImageRectangleDesignerContentAlignment활동 디자이너 화면에 이미지를 그립니다.

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

, 원본 및 대상GraphicsImage, Rectangle단정밀도 부동 소수점 숫자 및 부울 값을 사용하여 DesignerContentAlignment활동 디자이너 화면에 이미지를 그립니다.

DrawImage(Graphics, Image, Rectangle, DesignerContentAlignment)

, a, 및 Graphics를 사용하여 ImageRectangleDesignerContentAlignment활동 디자이너 화면에 이미지를 그립니다.

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)

매개 변수

graphics
Graphics

Graphics 이미지를 그릴 원본입니다.

image
Image

Image 그릴 것입니다.

destination
Rectangle

Rectangle 그릴 이미지의 범위를 정의하는 요소입니다.

alignment
DesignerContentAlignment

DesignerContentAlignment 경계 사각형에서 이미지가 정렬되는 방식을 지정하는 값입니다.

예외

graphics, image 또는 destination에는 null 참조(Visual Basic Nothing)가 포함됩니다.

설명

이 버전을 DrawImage사용하면 원본 사각형이 이미지의 크기(픽셀)로 설정되고 투명도 설정이 1.0f로 설정되며 회색조 그리기는 허용되지 않습니다.

적용 대상

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

, 원본 및 대상GraphicsImage, Rectangle단정밀도 부동 소수점 숫자 및 부울 값을 사용하여 DesignerContentAlignment활동 디자이너 화면에 이미지를 그립니다.

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)

매개 변수

graphics
Graphics

Graphics 이미지를 그릴 원본입니다.

image
Image

Image 그릴 것입니다.

destination
Rectangle

Rectangle 이미지의 범위를 정의하는 요소입니다.

source
Rectangle

Rectangle 이미지의 원본을 정의하는 값입니다.

alignment
DesignerContentAlignment

DesignerContentAlignment 경계 사각형에서 이미지가 정렬되는 방식을 지정하는 값입니다.

transparency
Single

이미지의 투명도 설정을 정의하는 단정밀도 부동 소수점 숫자입니다.

grayscale
Boolean

true이미지를 회색조로 그리려면 그렇지 않으면 . false

예외

graphics, image, destination 또는 source null 참조(Visual Basic Nothing)를 포함합니다.

-또는-

transparency 가 0보다 작거나 1.0f보다 큰 경우

적용 대상