View Full Version : MemorySaveImage format

September 3, 2008, 13:36:18
How could I save my image in jpg format.
actually I try
icImagingControl1.MemorySaveImage(saveFileDialog1. FileName);
with a jpg name but the exif jpg (Exchangeable image file format) is not right how do you make it.

Stefan Geissler
September 3, 2008, 14:38:51
Please use the ImageBuffer.SaveAsJpeg method

Dim Buf As ImageBuffer
Buf = ICImagingControl1.ImageBuffers(0)
Buf.SaveAsJpeg("test.jpg", 100)

ImageBuffer Buf = ICImagingControl1.ImageBuffers[0];
Buf.SaveAsJpeg("test.jpg", 100);

For more details please refer to

September 3, 2008, 16:07:05
I made it like this
TIS.Imaging.ImageBuffer ImgBuffer1;
ImgBuffer1 = icImagingControl1.ImageActiveBuffer;
ImgBuffer1.SaveAsJpeg(saveFileDialog1.FileName, 100);

thanks stefan

Stefan Geissler
September 3, 2008, 16:25:09
Shorter would be

icImagingControl1.ImageActiveBuffer.SaveAsJpeg(sav eFileDialog1.FileName, 100);

The parameter "100" is the JPEG quality in percent. You may try 80 or 90, that reduces the image file size, without too much visible loss of quality.

September 4, 2008, 08:10:12
I will change ASAP.
The exif field is empty in my image , is it forgotten or is it normal ?

Stefan Geissler
September 4, 2008, 10:03:49
IC Imaging Control does not write anything in the exif field. This is normal behaviour. We do not plan to write something into this field.

September 4, 2008, 10:06:14
I've made the change but my image saved is black lilke the buffer is empty.

Stefan Geissler
September 4, 2008, 10:23:00
Did you call MemorySnapImage() before saving?

September 4, 2008, 10:27:38