ImagePlaneGetLockedAccess Method

CVB.Net Documentation
Gets thread-locked access to the image data.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public ImageData GetLockedAccess(
	ImageDataLockMode lockMode
)

Parameters

lockMode
Type: Stemmer.CvbImageDataLockMode
Access mode hint.

Return Value

Type: ImageData
The image access data.
Remarks

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.

See Also

Reference