IMcRegionAccessUnlockPixelPointer Method
|
|
Unlock pixel memory
Namespace:
MediaCy.IQL.Engine
Assembly:
MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
RemarksOccasionally in makes sense to keep an McRegionAccess instance alive (by
not fully releasing it) during periods when you are not using it to access pixel
data. This makes sense when the McRegionAccess has been created with a Type
property that required a cast from the underlying McImage.Type. It is never
worthwhile doing this if the McRegionAccess Type is the same as the underlying
McImage.Type, since in this case it is very inexpensive to instantiate a new
McRegionAccess instance. However, if you know that you may need the cast pixel data
again, then it may be worthwhile to keep the cast McRegionAccess instance alive
holding the cast pixels rather than needing to do the cast again later.
If an McRegionAccess is kept alive across periods where it is not being actively
used, then you should call this method to unlock the pixel data. This unlocking
allows the cast pixel data to be swapped out as necessary for memory management.
See Also