When try save image with annotation using memorystream, this throw exception in Seek() because the stream is close, but the same code for save image without annotation, work correct.
byte[] b;
using (MemoryStream ms = new MemoryStream())
{
mwImageControl1.Viewer.Images[0].SaveWithAnnotations(ms, new Vintasoft.Imaging.Encoders.JpegEncoder(80));
ms.Seek(0, SeekOrigin.Begin);
b = ms.ToArray();
}
I have download the last package, and now there is no error but the annotations is not save in image.
I have testing the demo, and also does not save the annotations.
I thought that the method SaveWithAnnotations, save the image with the annotations merged, but now noticed that it saves the annotations embedded in the jpg, maintaining the original image.
What I want is a method GetImageWithAnnotations of AnnotationController, which merge the image with the annotations.