Current filter:
                                You should refresh the page.
                                  • I would like to report an Issue where and SVG taken from XtraChart is created correctly as an SVG file, however when I use

                                            Using vectorStream = chrt.GetChartVector()
                                                IO.File.WriteAllBytes("E:\vectoreTest.svg", vectorStream.ToArray())

                                                vectorStream.Seek(0, IO.SeekOrigin.Begin)
                                                Dim svgImage = New DevExpress.Utils.Svg.SvgImage(vectorStream)
                                                Dim svgBmp = New DevExpress.Utils.Svg.SvgBitmap(svgImage)

                                                Dim img = svgBmp.Render(New Size(CInt(svgImage.Width), CInt(svgImage.Height)), Nothing, DevExpress.Utils.DefaultBoolean.False)
                                                img.Save("E:\vectoreTest.png", Imaging.ImageFormat.Png)

                                            End Using

                                    It is missing the right most portion of the image, and is in fact rendered as Transparent in Photoshop.

                                1 Solution

                                Creation Date Importance Sort by


                                This behavior is specific to the SvgBitmap.Render method that uses a fixed size buffer and is not suitable for images wider than 1536 pixels.
                                To resolve this issue, use the RenderToGraphics method as shown in the sample code snippet below.

                                Dim svgBitmap As SvgBitmap = SvgBitmap.FromFile("path") Dim bitmap As New Bitmap(CInt(Fix(svgBitmap.SvgImage.Width)), CInt(Fix(svgBitmap.SvgImage.Height))) Using g As Graphics = Graphics.FromImage(bitmap) svgBitmap.RenderToGraphics(g, SvgPaletteHelper.GetSvgPalette(LookAndFeel, DevExpress.Utils.Drawing.ObjectState.Normal)) End Using
                                • J@GPT 12.03.2019

                                  Thanks, that has certainly helped.

                                  However now, I have noticed that the Image Annotations are not rendered on the PNG, I can confirm that are included as embedded resources in the actual SVG file.

                                  Also, the quality seems a litte low, the lines are quite jagged,

                                  The reason we need this to work is that we need to export images of our charts at a large size. Currently we create a clone of the chart at the size we need, and then export from there, if there was a way to get images exported at a requested size without the cone we could avoid the conversion process altogether.


                                • Alex (DevExpress Support) 12.03.2019

                                  I could not reproduce the issue with missing annotations. As for rescaling the SVG image, please specify the required scale factor when calling the RenderToGraphics method. Refer to the sample project I attached. Feel free to modify its source code to illustrate the issue. I will be happy to help you.