Note that there are some explanatory texts on larger screens.

plurals
  1. POExporting a transparent TChart PNG distorts text
    primarykey
    data
    text
    <p>I'm using Steema TeeChart v4.1.2010.11303. I want to export a chart to a PNG image with a <strong>transparent background</strong>.</p> <p>The resulting image has <strong>"distorted" or bold text</strong> in the left and bottom axis and in the header. It looks like being rendered with a raster font with a too low resolution. The legend on the right on the other hand looks fine:</p> <p><img src="https://i.imgur.com/gziZo.png?1" alt="TeeChart with distorted text"></p> <p>The following sample code can be used to reproduce the problem: </p> <pre><code>TChart tChart = new TChart(); tChart.Aspect.View3D = false; tChart.Panel.Brush.Gradient.Visible = false; // Make the background of the chart transparent. tChart.Panel.Transparent = true; Steema.TeeChart.Styles.Bar series1 = new Steema.TeeChart.Styles.Bar( tChart.Chart ); series1.FillSampleValues(); tChart.Draw(); tChart.Graphics3D.BufferStyle = Steema.TeeChart.Drawing.BufferStyle.None; using ( System.IO.Stream stream = new System.IO.MemoryStream() ) { tChart.Export.Image.PNG.Width = m_PictureBox.Width; tChart.Export.Image.PNG.Height = m_PictureBox.Height; tChart.Export.Image.PNG.Save( stream ); // Show the bitmap in a Windows Forms PictureBox. // Alternatively, it can also be saved in a file, which makes no difference. PictureBox.Image = new Bitmap( stream ); } </code></pre> <p>When switching off the transparency with <code>tChart.Panel.Transparent = false;</code>, all text looks fine. However, I need a transparent background.</p> <p>Is this a bug in TeeChart or am I missing something?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload