[]
        
(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)
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)
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.