Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / MeasureImage Method
The image to draw.
The destination rectangle.
The image alignment.

In This Topic
    MeasureImage Method
    In This Topic
    Measures how an image will be drawn using the specified bounds and image alignment.
    Syntax
    'Declaration
     
    Public Function MeasureImage( _
       ByVal image As IImage, _
       ByVal destBounds As System.Drawing.RectangleF, _
       ByVal align As ImageAlign _
    ) As System.Drawing.RectangleF()
    public System.Drawing.RectangleF[] MeasureImage( 
       IImage image,
       System.Drawing.RectangleF destBounds,
       ImageAlign align
    )

    Parameters

    image
    The image to draw.
    destBounds
    The destination rectangle.
    align
    The image alignment.

    Return Value

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