Save annotation image to JPEG

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
pjcruz
Posts: 3
Joined: Wed Aug 25, 2010 5:03 pm

Save annotation image to JPEG

Post by pjcruz » Wed Aug 25, 2010 7:49 pm

Hi, How can I save the image with the annotations to JPEG format?

Yuri
Posts: 56
Joined: Wed Jul 23, 2008 2:47 pm

Re: Save annotation image to JPEG

Post by Yuri » Thu Aug 26, 2010 9:22 am

Here is an example that shows how to save image with annotations in JPEG format into memory stream:

Code: Select all

MemoryStream stream = new MemoryStream();
JpegEncoder jpegEncoder = new JpegEncoder();
vsImage.SaveAnnotations = true;
vsImage.Save(stream, jpegEncoder);

pjcruz
Posts: 3
Joined: Wed Aug 25, 2010 5:03 pm

Re: Save annotation image to JPEG

Post by pjcruz » Thu Aug 26, 2010 5:09 pm

Yuri wrote:Here is an example that shows how to save image with annotations in JPEG format into memory stream:

Code: Select all

MemoryStream stream = new MemoryStream();
JpegEncoder jpegEncoder = new JpegEncoder();
vsImage.SaveAnnotations = true;
vsImage.Save(stream, jpegEncoder);


Thanks for your reply, what exactly is the vsImage object that you are mentioning?

pjcruz
Posts: 3
Joined: Wed Aug 25, 2010 5:03 pm

Re: Save annotation image to JPEG

Post by pjcruz » Thu Aug 26, 2010 11:27 pm

I already figure it out i just did :

Code: Select all

Dim jpegEncoder As New JpegEncoder
annotationViewer1.Images.SetSaveAnnotations(True)
annotationViewer1.Image.Save("C:\folder\tmp.jpeg", jpegEncoder)
Thanks for your help

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests