Jump to content
Software FX Community

Exporting Empty Plot Images in WPF?


Guest Micheal
 Share

Recommended Posts

Guest Micheal

I have a Contour Plot which I am trying to export to an image. My problem is, the exported image is often an empty image or the image has outdated data. The plot has not finished rendering when I to export it. How do I determine if the plot has finished rendering? Is there a bit I can check or an event I can subscribe to?

 

// Update plot data.

ContourPlot.ItemsSource = Data;

 

// Wait until rendering has finished?

 

// Capture image of plot.

ContourPlot.Export(FileFormat.Bitmap, memoryStream, exportSettings);

Link to comment
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.

 Share

×
×
  • Create New...