Click or drag to resize

IMcFrameCreateRegionAccess Method

Create an IMcRegionAccess interface for read/write pixel access.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Function CreateRegionAccess ( 
	<OptionalAttribute> vType As Object,
	Optional lChannel As Integer = -1,
	Optional lLeft As Integer = -1,
	Optional lTop As Integer = -1,
	Optional lRight As Integer = -1,
	Optional lBottom As Integer = -1,
	Optional AccessMode As mcRegionAccessMode = mcRegionAccessMode.mcramReadWrite
) As McRegionAccess

Parameters

vType (Optional)
Type: SystemObject
lChannel (Optional)
Type: SystemInt32
lLeft (Optional)
Type: SystemInt32
lTop (Optional)
Type: SystemInt32
lRight (Optional)
Type: SystemInt32
lBottom (Optional)
Type: SystemInt32
AccessMode (Optional)
Type: MediaCy.IQL.EnginemcRegionAccessMode
If given, specifies whether pixel access will be read-only, write-only or read-write (mcramReadWrite is the default). For mcramReadOnly AccessMode, any attempt to write to pixels will result in an error. Similarly, for mcramWriteOnly AccessMode, any attempt to read pixels is an error. The main advantage of specifying the AccessMode is for mcramWriteOnly access to a non-native (i.e., cast) Type. In this case, the initial forward cast of pixels from the native image Type to the requested McRegionAccess.Type can be skipped, thereby potentially saving substantial time.

Return Value

Type: McRegionAccess
A pointer to a new IMcRegionAccess instance.
See Also