Save annotation image to JPEG
Moderator: Alex
Save annotation image to JPEG
Hi, How can I save the image with the annotations to JPEG format?
Re: Save annotation image to JPEG
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);
Re: Save annotation image to JPEG
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?
Re: Save annotation image to JPEG
I already figure it out i just did :
Thanks for your help
Code: Select all
Dim jpegEncoder As New JpegEncoder
annotationViewer1.Images.SetSaveAnnotations(True)
annotationViewer1.Image.Save("C:\folder\tmp.jpeg", jpegEncoder)