Cognex Vpro Save Image

/ Published in: C#
Save to your folder(s)

Simple script to save Cognex Image using ImageFile.

Copy this code and paste it in your HTML
  1. Cognex.VisionPro.ImageFile.CogImageFileBMP lcogBMPImage = new Cognex.VisionPro.ImageFile.CogImageFileBMP();
  2. lcogBMPImage.Open(string.Concat("D:\\Jobs\\Station01\\Images\\Test\\Strip_", i.ToString(), ".bmp"), Cognex.VisionPro.ImageFile.CogImageFileModeConstants.Write);
  3. lcogBMPImage.Append((CogImage8Grey) mImagesOut[i]);
  4. lcogBMPImage.Close();
  5. ((IDisposable) lcogBMPImage).Dispose();

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.