I’m dealing with exporting excel chart/s via using vb.net. There is problem with when i exporting charts as a png format. When i open the chartImage.png the quality is very low like a blur, it’s hard to read.
Is there a way to increase the quality via using vb.net or activities(It cannot be 3rd partions)?
NOT : I’m not taking screenshot.
For now i cannot share the picture of charts. Because of security problem.
Ensure that you are exporting the chart with the desired size and resolution. You can set the width and height of the image to a larger value to get a higher quality image. For example, use the Width and Height.
You can set the resolution (DPI) of the exported image. Higher resolution results in better quality. You can set it using the SetResolution method.
chartImage.SetResolution(300, 300) ' Set to 300 DPI
chartImage.Save("ChartImage.png", System.Drawing.Imaging.ImageFormat.Png)
chartImage.Dispose()
Depending on your needs, consider using other image formats that may provide better quality than PNG. Formats like JPEG, TIFF, or BMP may be suitable for certain use cases.
Using vb itself where Specify a higher DPI (Dots Per Inch): DPI controls the image’s resolution. A higher DPI results in a higher quality image. You can set the DPI using code like this: