Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

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();
                 ................
           }
       }
}

Any suggestions?

Many thanks,