Hi everyone,
I am reading an Excel worksheet in a .xlsx
file which contains a group (1 picture + 1 red rectangle textbox above the picture to highlight a part of picture).
The problem is that I cannot extract this whole group as an image in order to save to local computer.
Noted that,
if I used the following block of code, then I can ungroup the original
group, and then can be able to extract and save the picture, but the
saved picture will loose the red text box drawn on top of the picture:
if (worksheetShapes[i] is IGroupShape groupShape)
{
foreach (IShape shape in groupShape.Items)
{
if (shape
is BitmapShapeImpl bitmapShape)
{
Image image = bitmapShape.Picture;
byte[] byteArray = image.ToByeArray();
................
}
}
}