Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcGraphicsExt Class / DrawImage Method / DrawImage(GcGraphics,Object,RectangleF,ImageScaleMode,Boolean,PointF,Boolean) Method
The graphics to draw on.
The image object (an GrapeCity.Documents.Drawing.IImage or a GrapeCity.Documents.Pdf.Graphics.FormXObject).
The image bounds.
The image scale mode.
Indicates whether the image should be scaled proportionally
The image position, see GrapeCity.Documents.Pdf.Annotations.ImageScale.Position for details.
Indicates whether a button's appearance should be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.

In This Topic
    DrawImage(GcGraphics,Object,RectangleF,ImageScaleMode,Boolean,PointF,Boolean) Method
    In This Topic
    Syntax
    'Declaration
     
    Public Overloads Shared Sub DrawImage( _
       ByVal g As GcGraphics, _
       ByVal image As System.Object, _
       ByVal bounds As System.Drawing.RectangleF, _
       ByVal imageScaleMode As ImageScaleMode, _
       ByVal imageScaleProportional As System.Boolean, _
       ByVal imageScalePosition As System.Drawing.PointF, _
       ByVal imageScaleIgnoreBorder As System.Boolean _
    ) 
    public static void DrawImage( 
       GcGraphics g,
       System.object image,
       System.Drawing.RectangleF bounds,
       ImageScaleMode imageScaleMode,
       System.bool imageScaleProportional,
       System.Drawing.PointF imageScalePosition,
       System.bool imageScaleIgnoreBorder
    )

    Parameters

    g
    The graphics to draw on.
    image
    The image object (an GrapeCity.Documents.Drawing.IImage or a GrapeCity.Documents.Pdf.Graphics.FormXObject).
    bounds
    The image bounds.
    imageScaleMode
    The image scale mode.
    imageScaleProportional
    Indicates whether the image should be scaled proportionally
    imageScalePosition
    The image position, see GrapeCity.Documents.Pdf.Annotations.ImageScale.Position for details.
    imageScaleIgnoreBorder
    Indicates whether a button's appearance should be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.
    See Also