Adds the specified image (stored in PNG format) to the sheet at the specified location with the specified settings.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub AddImage( _
ByVal img As Image, _
ByVal imageOptions As ImageInfo, _
ByVal lineColor As Color, _
ByVal backColor As Color, _
ByVal colL As Short, _
ByVal dxL As Short, _
ByVal rwT As Short, _
ByVal dyT As Short, _
ByVal colR As Short, _
ByVal dxR As Short, _
ByVal rwB As Short, _
ByVal dyB As Short, _
ByVal hyperlink As String _
) |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As DDSheet
Dim img As Image
Dim imageOptions As ImageInfo
Dim lineColor As Color
Dim backColor As Color
Dim colL As Short
Dim dxL As Short
Dim rwT As Short
Dim dyT As Short
Dim colR As Short
Dim dxR As Short
Dim rwB As Short
Dim dyB As Short
Dim hyperlink As String
instance.AddImage(img, imageOptions, lineColor, backColor, colL, dxL, rwT, dyT, colR, dxR, rwB, dyB, hyperlink)
|
| C# | |
|---|
public void AddImage(
Image img,
ImageInfo imageOptions,
Color lineColor,
Color backColor,
short colL,
short dxL,
short rwT,
short dyT,
short colR,
short dxR,
short rwB,
short dyB,
string hyperlink
) |
Parameters
- img
- An image object that represents the image to be placed on the sheet.
- imageOptions
- SpreadBuilder.Imaging.ImageInfo
- lineColor
- A System.Drawing.Color for the border lines on the image.
- backColor
- A System.Drawing.Color for the background of the image.
- colL
- The column containing the upper-left corner of the object's bounding rectangle.
- dxL
- The 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's width.
- rwT
- The row containing the upper-left corner of the object's bounding rectangle.
- dyT
- The 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's height.
- colR
- The column containing the lower-right corner of the object's bounding rectangle.
- dxR
- The 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's width.
- rwB
- The row containing the lower-right corner of the object's bounding rectangle.
- dyB
- The 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's height.
- hyperlink
- To add a clickable hyperlink to the image, specify the URL here. Otherwise use an empty string.
See Also