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

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

            return(image);
        }