Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export as image #2

Open
Catnap1 opened this issue Sep 6, 2023 · 3 comments
Open

Export as image #2

Catnap1 opened this issue Sep 6, 2023 · 3 comments

Comments

@Catnap1
Copy link

Catnap1 commented Sep 6, 2023

Hello, I am a beginner with TeeChart, and I am currently facing some difficulties in using TeeChart-Net. My English is not very good, so please forgive me. Here are the details:

I want to try exporting vector graphics in my code, as follows:

//string imagePath = ConstantUtil.AppFilePath + "temp\temp_report_chart_" + DateTime.Now.Ticks + cnt.ToString() + ".wmf";
//MetafileFormat metafile = chart.Export.Image.Metafile;

//metafile.Height = 370;
//metafile.Width = 758;
//metafile.Save(imagePath);

However, I have encountered an issue. When exporting in BMP format, the line thickness is normal. But when exporting in vector graphic format (WMF), the lines become thicker, and even when I modify the line thickness property, it doesn't change.

So, how should I handle this to prevent the lines from becoming too thick in WMF format?

Thank you for your assistance.

@mogmem
Copy link
Contributor

mogmem commented Sep 14, 2023

Hi, I've just run a test on that using your codelines. I'm seeing a faithful reproduction of line width in the saved wmf file. What version (build) of TeeChart NET are you using?

@Catnap1
Copy link
Author

Catnap1 commented Sep 21, 2023

@mogmem Hi, I am using version of TeeChart NET is "4.2021.8.23", Is this possible due to the version?

@mogmem
Copy link
Contributor

mogmem commented Sep 28, 2023

No, that version should be fine. I'm unable to reproduce the issue. If you can send a small sample project and a screenshot of what you're seeing to [email protected] we'll take a closer look. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants