[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.DrawImage

DrawImage Method

DrawImage(IImage, RectangleF, RectangleF?, ImageAlign, float)

Draws an image using specified bounds, clipping and image alignment.

Declaration
public void DrawImage(IImage image, RectangleF destBounds, RectangleF? clipBounds, ImageAlign align, float opacity = 1)
Public Sub DrawImage(image As IImage, destBounds As RectangleF, clipBounds As RectangleF?, align As ImageAlign, Optional opacity As Single = 1)
Parameters
Type Name Description
IImage image

The image to draw.

RectangleF destBounds

The destination rectangle.

RectangleF? clipBounds

The clipping rectangle, or null for no clipping.

ImageAlign align

The image alignment.

float opacity

The image opacity.

DrawImage(IImage, RectangleF, RectangleF?, ImageAlign, out RectangleF[], float)

Draws an image using specified bounds, clipping and image alignment.

In an output parameter, returns the array of actual image bounds.

Declaration
public void DrawImage(IImage image, RectangleF destBounds, RectangleF? clipBounds, ImageAlign align, out RectangleF[] imageBounds, float opacity = 1)
Public Sub DrawImage(image As IImage, destBounds As RectangleF, clipBounds As RectangleF?, align As ImageAlign, ByRef imageBounds As RectangleF(), Optional opacity As Single = 1)
Parameters
Type Name Description
IImage image

The image to draw.

RectangleF destBounds

The destination rectangle.

RectangleF? clipBounds

The clipping rectangle, or null for no clipping.

ImageAlign align

The image alignment.

RectangleF[] imageBounds

OUT: The actual bounds of the drawn images (can be more than one if the image is tiled).

float opacity

The image opacity.