Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
I am saving the ink canvas strokes into image using the following code
RenderTargetBitmap rtb = new RenderTargetBitmap((int)inkSign.Width, (int)inkSign.Height, 96d, 96d, PixelFormats.Default);
rtb.Render(inkSign);
BmpBitmapEncoder encoder = new BmpBitmapEncoder();
encoder.Frames.Add(BitmapFrame.Create(rtb));
FileStream fs = File.Open(Environment.CurrentDirectory + "/Photos/Sign"+NextId+".jpg", FileMode.Create);
encoder.Save(fs);
fs.Close();
but it saves the image as compete black rectangle how solve this in wpf
Posted
Comments
Member 12337813 26-Feb-16 2:37am    
I have Inkcanvas. And I've added image to that as child of inkcanvas. If i draw stroke on image, strokes are not appearing on image but its on inkcanvas itself. i want to add strokes to image.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900