Represents a picture object used by ExcelPictureCollection in the worksheet.
Namespace: GemBox.SpreadsheetAssembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 35.0.30.1025
Syntax
| C# |
|---|
public class ExcelPicture |
| Visual Basic |
|---|
Public Class ExcelPicture |
Examples
Following code demonstrates how to use images. It shows next features:
CopyVB.NET
CopyC#
- bmp, jpeg loading
- bmp, jpeg loading with custom coordinates and dimensions
sheet.Pictures.Add( "Image.bmp" ) sheet.Pictures.Add( "Image.bmp", New Rectangle(10, 50, 100, 100) )
sheet.Pictures.Add( "Image.bmp" ); sheet.Pictures.Add( "Image.bmp", new Rectangle( 10, 50, 100, 100 ) );