Problems with SaveWithAnnotations in memorystream

Questions, comments and suggestions concerning VintaSoftAnnotation.NET Plug-in.

Moderator: Alex

Problems with SaveWithAnnotations in memorystream

Postby zoao » Wed Jul 15, 2009 6:39 pm

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.
Code: Select all
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();
}



Thanks, João
zoao
 
Posts: 11
Joined: Wed Nov 12, 2008 4:11 pm

Re: Problems with SaveWithAnnotations in memorystream

Postby Alex » Thu Jul 16, 2009 10:38 am

Hello João,

Thank you for the message, this bug is fixed in the latest version (3.0.0.7) of VintaSoftImaging.NET Library.

Best regards, Alexander
Alex
Site Admin
 
Posts: 860
Joined: Thu Jul 10, 2008 11:21 am

Re: Problems with SaveWithAnnotations in memorystream

Postby zoao » Fri Jul 17, 2009 11:35 am

Hello Alex,

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.
zoao
 
Posts: 11
Joined: Wed Nov 12, 2008 4:11 pm

Re: Problems with SaveWithAnnotations in memorystream

Postby Alex » Thu Jul 23, 2009 6:42 am

Hello Zoao,

Please send a working project that demonstrates the problem to support@vintasoft.com - we cannot reproduce the problem.

Best regards, Alexander
Alex
Site Admin
 
Posts: 860
Joined: Thu Jul 10, 2008 11:21 am

Re: Problems with SaveWithAnnotations in memorystream

Postby zoao » Thu Jul 23, 2009 6:14 pm

Hello Alex,

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.

Thanks, João
zoao
 
Posts: 11
Joined: Wed Nov 12, 2008 4:11 pm


Return to VintaSoftAnnotation.NET Plug-in Discussions

Who is online

Users browsing this forum: No registered users and 2 guests