[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.MeasureImage

MeasureImage Method

MeasureImage(IImage, RectangleF, ImageAlign)

Measures how an image will be drawn using the specified bounds and image alignment.

Declaration
public RectangleF[] MeasureImage(IImage image, RectangleF destBounds, ImageAlign align)
Parameters
Type Name Description
IImage image

The image to draw.

RectangleF destBounds

The destination rectangle.

ImageAlign align

The image alignment.

Returns
Type Description
RectangleF[]

The array of image bounds (can contain multiple rectangles if the image is tiled.