Example #1
0
 public void Reset()
 {
     SlimLock.EnterWriteLock();
     _imageProcessingStatus = ImageProcessingStatus.NoImageProcessed;
     _acquiredImage         = null;
     SlimLock.ExitWriteLock();
 }
Example #2
0
 public void SetAquiredImageAndImageAddedStatus(Image image)
 {
     SlimLock.EnterWriteLock();
     _acquiredImage         = image;
     _imageProcessingStatus = ImageProcessingStatus.ImagePendingToBeProcessed;
     SlimLock.ExitWriteLock();
 }
Example #3
0
 public void SetImageProcessingStatus(ImageProcessingStatus imageProcessingStatus)
 {
     SlimLock.EnterWriteLock();
     if (_imageProcessingStatus != ImageProcessingStatus.ImageProviderStopped)
     {
         _imageProcessingStatus = imageProcessingStatus;
     }
     SlimLock.ExitWriteLock();
 }
Example #4
0
        public Image GetAcquiredImageAndSetImageProcessedStatus()
        {
            SlimLock.EnterWriteLock();
            var image = _acquiredImage;

            _imageProcessingStatus = ImageProcessingStatus.ImageIsProcessed;
            SlimLock.ExitWriteLock();

            return(image);
        }