VintaSoft Imaging .NET SDK and Plug-ins Discussions

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

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Save annotation image to JPEG



Save annotation image to JPEG

Post by pjcruz »

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


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:
MemoryStream stream = new MemoryStream();
JpegEncoder jpegEncoder = new JpegEncoder();
vsImage.SaveAnnotations = true;
vsImage.Save(stream, jpegEncoder);


Re: Save annotation image to JPEG

Post by pjcruz »

Here is an example that shows how to save image with annotations in JPEG format into memory stream:
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?


Re: Save annotation image to JPEG

Post by pjcruz »

I already figure it out i just did :
Dim jpegEncoder As New JpegEncoder
annotationViewer1.Images.SetSaveAnnotations(True)
annotationViewer1.Image.Save("C:\folder\tmp.jpeg", jpegEncoder)
Thanks for your help


Page 1 from 1: 1