Message Boards Message Boards

Convert Image[] MathKernel.Graphics to System.Windows.Controls...

Posted 2 years ago

I develop a WPF application in C#. A part of code is:

mk.CaptureGraphics = true;
mk.GraphicsFormat = "GIF";
mk.GraphicsHeight = 100;
mk.GraphicsWidth = 150;
mk.UseFrontEnd = false; 
mk.Compute("Graphics[{Thick, Blue, Circle[{#, 0}] & /@ Range[4], Black, Dashed, Line[{{0, 0}, {5, 0}}]}]");
Img_Circle.Source = mk.Graphics[0];

Question: How should I convert Image[] MathKernel.Graphics to System.Windows.Controls.Image.Source?

I know it's not a Mathematica-problem itself, but I can't be solved!

POSTED BY: Peter Leibundgut
2 Replies
Posted 2 years ago
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract