Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Tue Jan 18, 2011 7:51 am

When I read an image from Excel, may I change the size of the picture?

Posts: 11
Joined: Mon Dec 27, 2010 3:08 am

Tue Jan 18, 2011 8:35 am

Thank you for your inquiry!
Of course you can.
1. get the picture via: ExcelPicture pic = sheet.Pictures[0];
2. get the Image object: Image image = pic.Picture;
3. change the size of the Image as a normal Image object: image.Height = 640; image.Width = 800;
e-iceblue support
User avatar

iceblue support
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.XLS