Adds the specified image (currently saved as PNG) to this sheet at the specified location and with the specified settings.
public void AddImage(
byte[] ,
ImageInfo ,
Color ,
Color ,
int columnLeft,
short ,
int ,
short ,
int columnRight,
short ,
int ,
short ,
string
)
'Declaration
Public Sub AddImage( _
ByVal () As Byte, _
ByVal As ImageInfo, _
ByVal As Color, _
ByVal As Color, _
ByVal columnLeft As Integer, _
ByVal As Short, _
ByVal As Integer, _
ByVal As Short, _
ByVal columnRight As Integer, _
ByVal As Short, _
ByVal As Integer, _
ByVal As Short, _
ByVal As String _
)
Parameters
- imageData
- This is an image object that represents the image to be placed on the sheet.
- imageOptions
- lineColor
- backColor
- columnLeft
- Column containing the upper left corner of the object's bounding rectangle.
- 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.
- rowTop
- Row containing the upper left corner of the object's bounding rectangle.
- 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.
- columnRight
- Column containing the lower right corner of the object's bounding rectangle.
- 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.
- rowBottom
- Row containing the lower right corner of the object's bounding rectangle.
- 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.
- hyperlink
- If you want the image to have a clickable hyperlink, enter the URL here. Otherwise use an empty string.