public void Reset() { SlimLock.EnterWriteLock(); _imageProcessingStatus = ImageProcessingStatus.NoImageProcessed; _acquiredImage = null; SlimLock.ExitWriteLock(); }
public void SetAquiredImageAndImageAddedStatus(Image image) { SlimLock.EnterWriteLock(); _acquiredImage = image; _imageProcessingStatus = ImageProcessingStatus.ImagePendingToBeProcessed; SlimLock.ExitWriteLock(); }
public void SetImageProcessingStatus(ImageProcessingStatus imageProcessingStatus) { SlimLock.EnterWriteLock(); if (_imageProcessingStatus != ImageProcessingStatus.ImageProviderStopped) { _imageProcessingStatus = imageProcessingStatus; } SlimLock.ExitWriteLock(); }
public Image GetAcquiredImageAndSetImageProcessedStatus() { SlimLock.EnterWriteLock(); var image = _acquiredImage; _imageProcessingStatus = ImageProcessingStatus.ImageIsProcessed; SlimLock.ExitWriteLock(); return(image); }