Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Tue Jan 18, 2011 7:51 am

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

tomason
 
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

cron