Pictures APIs are used to insert images at run time. It doesn’t get images from templates. Aspose.Excel just load and save images in templates in their raw formats.
@amao9,
Aspose.Cells has replaced Aspose.Excel that is not continued now. You can work will all types of drawing objects using Aspose.Cells like OleObjects, smart art, comments, controls, picture, active X, text boxes and shapes etc. You can get images from Excel file now as demonstrated in the following sample code:
Workbook workbook = new Workbook("Book.xlsx");
foreach (Worksheet worksheet in workbook.Worksheets)
{
foreach (Picture picture in worksheet.Pictures)
{
ImageOrPrintOptions imageOrPrintOptions = new ImageOrPrintOptions();
imageOrPrintOptions.ImageType = ImageType.Png;
Console.WriteLine($"{worksheet.Name}-" + picture.Name + ".png");
picture.ToImage($"{worksheet.Name}-" + picture.Name + ".png", imageOrPrintOptions);
}
}
This code will parse through all the worksheets in a workbook and save all images on each worksheet as PNG image.
Here is link to a document containing examples and details about working with pictures: Managing Pictures
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.