[]
Draws an image represented by an IImage or a FormXObject.
public static void DrawImage(this GcGraphics g, object image, RectangleF bounds, ImageScaleMode imageScaleMode, bool imageScaleProportional, PointF imageScalePosition, bool imageScaleIgnoreBorder)
| 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. |
Draws an image represented by an IImage or a FormXObject.
public static void DrawImage(this GcGraphics g, object image, RectangleF bounds, ImageScale imageScale)
| 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. |