Profile Picture

NPrintManager issue

Posted By inhyuk son 14 Years Ago
Author
Message
inhyuk son
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 21, Visits: 1
Hi~ Nevron.
I've got a NPrintManager issue.
When I was added a NBevelAndEmbossImageFilter to a NFillStyle, a NPrintManager was wrong work.
Is something wrong?


Sample code is here.

private NPrintManager m_PrintManager;

public Form1()
{
InitializeComponent();

m_PrintManager = new NPrintManager(nChartControl1.Document);
}

private void Form1_Load(object sender, EventArgs e)
{

NChart chart = nChartControl1.Charts[0];
NBarSeries bar = (NBarSeries)chart.Series.Add(SeriesType.Bar);
// add some data to the bar series
bar.AddDataPoint(new NDataPoint(18, "Silverlight"));
bar.AddDataPoint(new NDataPoint(15, "Ajax"));
bar.AddDataPoint(new NDataPoint(21, "JackBe"));
bar.AddDataPoint(new NDataPoint(23, "Laszlo"));
bar.AddDataPoint(new NDataPoint(28, "Java FX"));
bar.AddDataPoint(new NDataPoint(29, "Flex"));

NBevelAndEmbossImageFilter bevelAndEmbossImageFilter = new NBevelAndEmbossImageFilter();
bevelAndEmbossImageFilter.BlurType = BlurType.Gaussian;
bevelAndEmbossImageFilter.BevelType = BevelType.Outer;
bevelAndEmbossImageFilter.Angle = 20;
bevelAndEmbossImageFilter.Depth = new NLength(3);
bevelAndEmbossImageFilter.Soften = new NLength(0);
bevelAndEmbossImageFilter.LightColor = Color.Transparent;

NGradientFillStyle fillStyle = new NGradientFillStyle(GradientStyle.Vertical, GradientVariant.Variant2, Color.Red, Color.DarkRed);
fillStyle.ImageFiltersStyle.Filters.Add(bevelAndEmbossImageFilter);
bar.FillStyle = fillStyle;
}

private void button1_Click(object sender, EventArgs e)
{
m_PrintManager.ShowPrintPreview();
}

Attachments
print.PNG (46 views, 29.00 KB)



Similar Topics


Reading This Topic