[]
        
(Showing Draft Content)

GrapeCity.SpreadBuilder.DDSheet.AddImage

AddImage Method

AddImage(byte[], ImageInfo, Color, Color, int, short, int, short, int, short, int, short, string)

Adds the specified image (currently saved as PNG) to this sheet at the specified location and with the specified settings.

Declaration
public void AddImage(byte[] imageData, ImageInfo imageOptions, Color lineColor, Color backColor, int columnLeft, short dxL, int rowTop, short dyT, int columnRight, short dxR, int rowBottom, short dyB, string hyperlink)
Parameters
Type Name Description
byte[] imageData

This is an image object that represents the image to be placed on the sheet.

ImageInfo imageOptions
Color lineColor
Color backColor
int columnLeft

Column containing the upper left corner of the object's bounding rectangle.

short dxL

X (horizontal) position of the upper left corner of the object's bounding rectangle, relative to the left side of the underlying cell (specified in colL), expressed as 1/1024th of the cell width.

int rowTop

Row containing the upper left corner of the object's bounding rectangle.

short dyT

Y (vertical) position of the upper left corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell height.

int columnRight

Column containing the lower right corner of the object's bounding rectangle.

short dxR

X (horizontal) position of the lower right corner of the object's bounding rectangle, relative to the left side of the underlying cell, expressed as 1/1024th of the cell width.

int rowBottom

Row containing the lower right corner of the object's bounding rectangle.

short dyB

Y (vertical) position of the lower right corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell height.

string hyperlink

If you want the image to have a clickable hyperlink, enter the URL here. Otherwise use an empty string.