Posted By

gofast505 on 10/20/15


image save Cognex Vpro

Versions (?)

Cognex Vpro Save Image

 / Published in: C#

Simple script to save Cognex Image using ImageFile.

  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  

You need to login to post a comment.