[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcGraphicsExt.DrawImage

DrawImage Method

DrawImage(GcGraphics, object, RectangleF, ImageScaleMode, bool, PointF, bool)

Draws an image represented by an IImage or a FormXObject.

Declaration
public static void DrawImage(this GcGraphics g, object image, RectangleF bounds, ImageScaleMode imageScaleMode, bool imageScaleProportional, PointF imageScalePosition, bool imageScaleIgnoreBorder)
Public Shared Sub DrawImage(g As GcGraphics, image As Object, bounds As RectangleF, imageScaleMode As ImageScaleMode, imageScaleProportional As Boolean, imageScalePosition As PointF, imageScaleIgnoreBorder As Boolean)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

object image

The image object (an IImage or a FormXObject).

RectangleF bounds

The image bounds.

ImageScaleMode imageScaleMode

The image scale mode.

bool imageScaleProportional

Indicates whether the image should be scaled proportionally

PointF imageScalePosition

The image position, see Position for details.

bool 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.

DrawImage(GcGraphics, object, RectangleF, ImageScale)

Draws an image represented by an IImage or a FormXObject.

Declaration
public static void DrawImage(this GcGraphics g, object image, RectangleF bounds, ImageScale imageScale)
Public Shared Sub DrawImage(g As GcGraphics, image As Object, bounds As RectangleF, imageScale As ImageScale)
Parameters
Type Name Description
GcGraphics g

The graphics to draw on.

object image

The image object (an IImage or a FormXObject).

RectangleF bounds

The image bounds.

ImageScale imageScale

The image alignment and scaling.