Hi All,
I have designed one application using Silver Light Ink.
I have done pen and erase functionality and its working fine.
Now I want to capture and save that image.
I have added this code for that
RenderTargetBitmap target = new RenderTargetBitmap((int)inkCtrl.ActualWidth, (int)inkCtrl.ActualHeight, 96d, 96d, PixelFormats.Default);
target.Render(inkCtrl);
PngBitmapEncoder encoder = new PngBitmapEncoder();
encoder.Frames.Add(BitmapFrame.Create(target));
FileStream fs = File.Open(@"c:\stuff\InkWithEffects.png", FileMode.OpenOrCreate);
encoder.Save(fs);
fs.Close();
It is throwing error that assembly reference not added.
But I have added library System.windows.media.imaging;
Please help me.
Thanks in Advance.
Rams.