Jump to content
Software FX Community
gajo357

Borders missing

Recommended Posts

Hi,

When I copy the chart to the clipboard, it is copied only with the left and top border, but the bottom and right are missing.

chart.Border = new ChartFX.WinForms.Adornments.SimpleBorder(SimpleBorderType.Color, Color.Black);

chart.Export(FileFormat.Bitmap);

Could it be something with export size?

private static readonly Size ExportImageSize = new Size(600, 450);

Share this post


Link to post
Share on other sites

Hi,

Please take a look at the following code to

export the chart to the clipboard:

As Metafile:

chart1.Export(FileFormat.Metafile);

As Bitmap:

chart1.Export(FileFormat.Bitmap);

As Stream:

MemoryStream ms = new MemoryStream();

chart1.Export(FileFormat.Metafile, ms);

ms.Seek(0, SeekOrigin.Begin);

Bitmap bmp = new Bitmap(ms,true);

Clipboard.SetImage((Image)bmp); 

I hope this helps.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...