Profile Picture

Making emf transparent

Posted By Nick Howard 13 Years Ago
Author
Message
Nick Howard
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1
Maybe I'm missing something, but can I print to an emf file and have it be transparent? I'm having trouble finding what setting I need to set to make that happen. Any suggestions?

Thanks for the help, I sincerely appreciate it.

Thanks,
Nick

Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Nick,

You'll have to set the background fill style to transparent and disable the control frame - for example:

using (NChartControl control = new NChartControl())
{
 NCartesianChart chart = (NCartesianChart)control.Charts[0];

 NBarSeries bar = new NBarSeries();
 bar.Values.Add(10);
 bar.Values.Add(20);
 bar.Values.Add(30);
 chart.Series.Add(bar);

 control.BackgroundStyle.FillStyle = new NColorFillStyle(Color.Transparent);
 control.BackgroundStyle.FrameStyle.Visible = false;

 control.ImageExporter.CopyToClipboard(new NSize(400, 400), NResolution.ScreenResolution, new NEmfImageFormat());
}

places a 400x400 emf file to the clipboard.



Best Regards,
Nevron Support Team



Nick Howard
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 5, Visits: 1
Great! Thank you very much. I could have sworn that I had tried that once. Working great now.



Similar Topics


Reading This Topic