DrawImage(String,Rectangle,SizingMode,Nullable<Rectangle>,RectAlignment) Method
In This Topic
Draws an image into the region defined by the specified GrapeCity.Drawing.Rectangle.
Syntax
'Declaration
Public Overloads MustOverride Sub DrawImage( _
ByVal As String, _
ByVal As Rectangle, _
ByVal As SizingMode, _
Optional ByVal As Nullable(Of Rectangle), _
Optional ByVal As RectAlignment _
)
'Usage
Dim instance As PrintingContext
Dim filePath As String
Dim bounds As Rectangle
Dim sizingMode As SizingMode
Dim clipBounds As Nullable(Of Rectangle)
Dim rectAlignment As RectAlignment
instance.DrawImage(filePath, bounds, sizingMode, clipBounds, rectAlignment)
public abstract void DrawImage(
string ,
Rectangle ,
SizingMode ,
Nullable<Rectangle> ,
RectAlignment
)
Parameters
- filePath
- File path of image to draw
- bounds
- GrapeCity.Drawing.Rectangle structure that specifies the location and size of the drawn image.
- sizingMode
- GrapeCity.CalcEngine.SizingMode structure that specifies the the image dimensions.
- clipBounds
- GrapeCity.Drawing.Rectangle structure that specifies the clipping rectangle, or null for no clipping.
- rectAlignment
- GrapeCity.Drawing.RectAlignment that specifies how's the image aligned.
See Also