hello,
I have been exploring the Aspose Cell .NET for potential solution for our usecase. i.e.e conmverting excel chart to PNG.
The Quality of PNG generated from Excel chart is good except contrast & brightness. is this a known issue? I have seen other users complaining the same.
there are options like SmoothingMode, TextRenderingHint provided (not seen much difference with that though), but you dont expose “TextContrast” this interface, which is available on System.Drawing.Drawing2D
Also can you please suggest how can we make improvement in the sharpness of the generated image?
Code snippet:
Worksheet m_worksheet = m_workbook.Worksheets[0];
Charts.Chart m_chart = m_worksheet.Charts[0];
Rendering.ImageOrPrintOptions ops = new Rendering.ImageOrPrintOptions();
ops.VerticalResolution = 300;
ops.HorizontalResolution = 300;
ops.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
//ops.Quality = 100; //is this really required
ops.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
ops.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
m_chart.ToImage(“ChartImage.png”, ops);
Thanks in advance!