/ Published in: C#
Simple script to save Cognex Image using ImageFile.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Cognex.VisionPro.ImageFile.CogImageFileBMP lcogBMPImage = new Cognex.VisionPro.ImageFile.CogImageFileBMP(); lcogBMPImage.Open(string.Concat("D:\\Jobs\\Station01\\Images\\Test\\Strip_", i.ToString(), ".bmp"), Cognex.VisionPro.ImageFile.CogImageFileModeConstants.Write); lcogBMPImage.Append((CogImage8Grey) mImagesOut[i]); lcogBMPImage.Close(); ((IDisposable) lcogBMPImage).Dispose();