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