Black Panel in bitmap - TeeChart Version 3.2.2980.19083
Posted: Tue Apr 01, 2008 5:44 pm
Hi There,
The code is as follows
private void Form1_Load(object sender, EventArgs e)
{
tChart1.Panel.MarginTop = 1;
tChart1.Panel.MarginBottom = 1;
tChart1.Panel.MarginUnits = Steema.TeeChart.PanelMarginUnits.Pixels;
tChart1.Panel.Transparent = false;
tChart1.Panel.Gradient.Visible = false;
tChart1.Walls.Back.Gradient.Visible = false;
tChart1.Walls.Back.Transparent = false;
tChart1.BackColor = Color.White;
tChart1.Panel.Color = Color.White;
tChart1.Walls.Back.Color = Color.White;
tChart1.Legend.Visible = false;
fastLine1.FillSampleValues(1000);
}
private void copyToClipboardToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
Bitmap bm = tChart1.Bitmap;
System.Windows.Forms.Clipboard.SetImage(bm);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
The screen looks fine. When clipboard is pasted in paint you will see a black background.
I have uploaded the sample project too.
Regards
Srinivas
The code is as follows
private void Form1_Load(object sender, EventArgs e)
{
tChart1.Panel.MarginTop = 1;
tChart1.Panel.MarginBottom = 1;
tChart1.Panel.MarginUnits = Steema.TeeChart.PanelMarginUnits.Pixels;
tChart1.Panel.Transparent = false;
tChart1.Panel.Gradient.Visible = false;
tChart1.Walls.Back.Gradient.Visible = false;
tChart1.Walls.Back.Transparent = false;
tChart1.BackColor = Color.White;
tChart1.Panel.Color = Color.White;
tChart1.Walls.Back.Color = Color.White;
tChart1.Legend.Visible = false;
fastLine1.FillSampleValues(1000);
}
private void copyToClipboardToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
Bitmap bm = tChart1.Bitmap;
System.Windows.Forms.Clipboard.SetImage(bm);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
The screen looks fine. When clipboard is pasted in paint you will see a black background.
I have uploaded the sample project too.
Regards
Srinivas