Current filter:
                                You should refresh the page.
                                  • Hi,

                                    Can you tell me how to convert a DevExpress.Spreadsheet Shape object into an image?

                                    Regards.

                                • Mariya (DevExpress Support) 07.31.2019

                                  Hello,
                                  At the moment, we do not provide an API that allows you to convert a shape to a bitmap. It's only possible to convert regular document images and charts to bitmaps.
                                  I've forwarded this ticket to our developers. We will think how to improve our API in this regard.

                                • Comdata 07.31.2019
                                  Hello,  
                                    
                                  OK thanks for your answer  
                                    
                                  

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:


                                Additional information:

                                We have added the following method to the Shape interface:

                                [C#]
                                OfficeImage ExportToImage();

                                Use this method to export a drawing object (chart, picture, or shape) to an image. This method preserves all display settings applied to the drawing object (for instance, crop, outline, and effects).
                                The example below shows how to create a text box and export it to an image.

                                [C#]
                                Shape textBox = worksheet.Shapes.AddTextBox(50, 120, 500, 250, "Spreadsheet"); textBox.Fill.SetSolidFill(Color.PowderBlue); textBox.ExportToImage().NativeImage.Save("MyTextBox.png");