Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Parameters
- lockMode
- Type: Stemmer.CvbImageDataLockMode
Access mode hint.
Return Value
Type: ImageDataThe image access data.
Calling this method will enter a reader/writer lock based on the specified lock mode. It is mandatory to Dispose the returned object when pixel access has finished. Best use the returned object in a using block.
All other API functions do not use the reader/writer lock of the image. Thus if you want to use these on a shared image resource with some write access, you need to wrap the calls in a using block initialized by this method.
Also by giving a hint whether you are changing the image data, the PixelContentChanged event is fired when the returned object is disposed and the lockMode is WriteOnly or ReadWrite.