In the attached file you will see a part of a tchart with a distinct black border surrounding the image.
I have tried to remove this border using the code:
Code: Select all
Chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
Code: Select all
Chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
Code: Select all
tChart1.Series.Add(new Steema.TeeChart.Styles.Line()).FillSampleValues();
tChart1.Panel.Pen.Visible = false;
tChart1.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
Code: Select all
tChart1.Walls.Visible = false;
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Code: Select all
public Form1()
{
InitializeComponent();
tChart1.Series.Clear();
tChart1.Series.RemoveAllSeries();
tChart1.Tools.Clear();
tChart1.Axes.Left.Labels.Items.Clear();
tChart1.BackColor = Color.White;
tChart1.Walls.Back.Gradient.Visible = false;
tChart1.Walls.Back.Color = Color.White;
tChart1.Walls.Bottom.Gradient.Visible = false;
tChart1.Walls.Bottom.Color = Color.White;
tChart1.Panel.Gradient.Visible = false;
tChart1.Panel.Color = Color.White;
tChart1.Aspect.View3D = false;
tChart1.Walls.Visible = false;
tChart1.Panel.Pen.Visible = false;
tChart1.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
tChart1.Panel.Bevel.Width = 0;
tChart1.Axes.Left.Automatic = true;
tChart1.Axes.Bottom.Automatic = true;
tChart1.Axes.Left.Title.Caption = "";
tChart1.Axes.Bottom.Title.Caption = "";
tChart1.Header.Text = "";
tChart1.Legend.Visible = false;
tChart1.Legend.Shadow.Visible = false;
tChart1.Legend.Font.Size = 14;
tChart1.Legend.Symbol.Width = 50;
tChart1.Legend.Symbol.Squared = true;
if (tChart1.Axes.Custom.Count > 0)
{
tChart1.Axes.Custom.Clear();
}
tChart1.Export.Image.Bitmap.Save(@"C:\Temp\jkhfw.bmp");
}
Code: Select all
tChart1.Clear();
tChart1.BackColor = Color.White;
tChart1.Panel.Gradient.Visible = false;
tChart1.Panel.Color = Color.White;
tChart1.Aspect.View3D = false;
tChart1.Walls.Visible = false;
tChart1.Panel.Pen.Visible = false;
tChart1.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
tChart1.Panel.Bevel.Width = 0;
tChart1.Header.Text = "";
tChart1.Legend.Visible = false;
var bufferStyle = tChart1.Graphics3D.BufferStyle;
tChart1.Graphics3D.BufferStyle = Steema.TeeChart.Drawing.BufferStyle.None;
tChart1.Export.Image.Bitmap.Save(@"C:\Temp\jkhfw.bmp");
tChart1.Graphics3D.BufferStyle = bufferStyle;
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |