Reducing Image Size when Adding Image to Table Cell with Aspose.Slides for .NET

Hi, I have the following code to add an image to a cell in my table, but with the stretch property covering the entire cell, I need to be able to minimize and fit it well.
2023-03-10 12_23_33-Window.png (8,0 KB)

MemoryStream stream = new MemoryStream(FirmaResized);
IPPImage imgx1 = DocumentoProcesado.Images.AddImage(stream);

// Add image to first table cell
tbl[columna, fila].CellFormat.FillFormat.FillType = Aspose.Slides.FillType.Picture;
tbl[columna, fila].CellFormat.FillFormat.PictureFillFormat.PictureFillMode = PictureFillMode.Stretch;
tbl[columna, fila].CellFormat.BorderTop.Width = 15;
tbl[columna, fila].CellFormat.BorderRight.Width = 15;
tbl[columna, fila].CellFormat.BorderBottom.Width = 35;
tbl[columna, fila].CellFormat.BorderLeft.Width = 15;
tbl[columna, fila].CellFormat.FillFormat.PictureFillFormat.Picture.Image = imgx1;

@isalolu,
Thank you for contacting support.

Please check your results using the latest version of Aspose.Slides for .NET if it is possible. If the issue persists, please share the following files and information:

  • initial sample presentation with the table
  • final sample presentation created in PowerPoint, showing the expected result
  • Aspose.Slides version you used