GcSpread.Sheets Namespace : ImageLayout Enumeration |
Member | Description |
---|---|
Center | Specifies that the background image displays in the center of the area. |
None | Specifies that the background image displays in the upper left corner of the area with its original size. |
Stretch | Specifies that the background image fills the area. |
Zoom | Specifies that the background image displays in the area with its original aspect ratio. |
var cellImage = document.getElementById("circle").src; var rowImage = "./css/images/quarter1.png"; var colImage = document.getElementById("logo").src; activeSheet.getCell(3, 3).backgroundImage(cellImage); activeSheet.getRow(1).backgroundImage(rowImage); activeSheet.getColumn(1).backgroundImage(colImage); activeSheet.getRow(1).backgroundImageLayout(GcSpread.Sheets.ImageLayout.Center); <img src="./css/images/box3.png" id="logo"/> <img src="./css/images/greencircle.png" id="circle"/>
Object
GcSpread.Sheets.ImageLayout