Parameters
- img
- The image contained in the new XLPictureShape.
- x
- The horizontal position of the new shape with respect to the cell, in twips.
- y
- The vertical position of the new shape with respect to the cell, in twips.
// get sheet and cell XLSheet sheet = c1ExcelBook1.Sheets[0]; XLCell cell = sheet[row, col]; // build XLPictureShape XLPictureShape pic = new XLPictureShape(image, 30, 30); // assign XLPictureShape to cell cell.Value = pic;