Table of Contents

Method DrawImage

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

DrawImage(Image, PointD)

Draws the specified Image, using its original size, at the specified location.

public abstract void DrawImage(Image image, PointD origin)

Parameters

image Image

Image to draw.

origin PointD

PointD structure that represents the upper-left corner of the drawn image.

Remarks

When drawing a mono-bitmap, the current text foreground color will be used to draw the foreground of the bitmap (all bits set to 1), and the current text background color to draw the background (all bits set to 0).

DrawImage(Image, RectD)

Draws an image into the region defined by the specified RectD.

public abstract void DrawImage(Image image, RectD destinationRect)

Parameters

image Image

Image to draw.

destinationRect RectD

The region in which to draw image.

Remarks

When drawing a mono-bitmap, the current text foreground color will be used to draw the foreground of the bitmap (all bits set to 1), and the current text background color to draw the background (all bits set to 0).

DrawImage(Image, RectD, RectD)

Draws the specified portion of the image into the region defined by the specified RectD.

public abstract void DrawImage(Image image, RectD destinationRect, RectD sourceRect)

Parameters

image Image

Image to draw.

destinationRect RectD

The region in which to draw image. Specified in device-independent units.

sourceRect RectD

RectD structure that specifies the portion of the image object to draw.

DrawImage(Image, RectD, RectD, GraphicsUnit)

Draws the specified portion of the image into the region defined by the specified RectD.

public abstract void DrawImage(Image image, RectD destinationRect, RectD sourceRect, GraphicsUnit unit)

Parameters

image Image

Image to draw.

destinationRect RectD

The region in which to draw image.

sourceRect RectD

RectD structure that specifies the portion of the image object to draw.

unit GraphicsUnit

Units used to draw the image. Currently only pixel unit is allowed.