Making emf transparent


Author
Message
Nick Howard
Nick Howard
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
Posts: 5, Visits: 1
Great! Thank you very much. I could have sworn that I had tried that once. Working great now.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
Nick Howard
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
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search