[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Printing.PrintingContext.DrawImage

DrawImage Method

DrawImage(Stream, Rectangle, SizingMode, Rectangle?, RectAlignment)

Draws an image into the region defined by the specified Rectangle.

Declaration
public abstract void DrawImage(Stream imageStream, Rectangle bounds, SizingMode sizingMode, Rectangle? clipBounds = null, RectAlignment rectAlignment = RectAlignment.Unspecified)
Public MustOverride Sub DrawImage(imageStream As Stream, bounds As Rectangle, sizingMode As SizingMode, Optional clipBounds As Rectangle? = Nothing, Optional rectAlignment As RectAlignment = RectAlignment.Unspecified)
Parameters
Type Name Description
Stream imageStream

The data stream of image to draw.

Rectangle bounds

Rectangle structure that specifies the location and size of the drawn image.

SizingMode sizingMode

SizingMode structure that specifies the the image dimensions.

Rectangle? clipBounds

Rectangle structure that specifies the clipping rectangle, or null for no clipping.

RectAlignment rectAlignment

RectAlignment that specifies how's the image aligned.

DrawImage(string, Rectangle, SizingMode, Rectangle?, RectAlignment)

Draws an image into the region defined by the specified Rectangle.

Declaration
public abstract void DrawImage(string filePath, Rectangle bounds, SizingMode sizingMode, Rectangle? clipBounds = null, RectAlignment rectAlignment = RectAlignment.Unspecified)
Public MustOverride Sub DrawImage(filePath As String, bounds As Rectangle, sizingMode As SizingMode, Optional clipBounds As Rectangle? = Nothing, Optional rectAlignment As RectAlignment = RectAlignment.Unspecified)
Parameters
Type Name Description
string filePath

File path of image to draw

Rectangle bounds

Rectangle structure that specifies the location and size of the drawn image.

SizingMode sizingMode

SizingMode structure that specifies the the image dimensions.

Rectangle? clipBounds

Rectangle structure that specifies the clipping rectangle, or null for no clipping.

RectAlignment rectAlignment

RectAlignment that specifies how's the image aligned.