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 »

Hi, How can I save the image with the annotations to JPEG format?
Yuri
Posts: 64
Joined: Wed Jul 23, 2008 2:47 pm

Re: Save annotation image to JPEG

Post by Yuri »

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 »

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 »

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