Profile Picture

ImageExport top one pixel missing

Posted By Matthias Laessig 13 Years Ago
Author
Message
Matthias Laessig
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 6, Visits: 1
Hi,

I'm trying to export a chart to PNG and it seems that the top line (one pixel) is missing. I'm using the following code:
ChartControl.ImageExporter.SaveToFile(@"C:\Temp\chart.png", new NSize(3000, 2000), new NResolution(300, 300), NImageFormat.CreateImageFormat("image/png"));

I've attached a screenshot and a crop of the exported image...

Hope anyone has a solution for this.

Attachments
desktop.png (53 views, 6.00 KB)
export.png (46 views, 9.00 KB)
Matthias Laessig
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 6, Visits: 1
Additionally I see some strange overlapping between the series line on PrimaryY (see attached image).

Lines are created with the following borderstyle:
instrumentLine.BorderStyle.Width = new NLength(3f, NGraphicsUnit.Point); // green line
relPerfLine.BorderStyle.Width = new NLength(2f, NGraphicsUnit.Point); // black line

As the exported image will be used for print it is extremely important that the style look perfect (even one pixel difference can be seen by our marketing guys).

Thanks.
Matthias.

Attachments
overlap.png (50 views, 6.00 KB)
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
Hello Matthias,

We were not able to reproduce the issues. It seems that these problems show up with the particular chart configuration that you are using. Can you please send the complete code that configures the chart to our support email?

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic