Description

Create an McRegionAccess interface for read/write pixel access.

Return Type

A McRegionAccess object.  

McRegionAccess** : A pointer to an McRegionAccess interface pointer variable.

Syntax

object.CreateRegionAccess ([vType], [lChannel], [lLeft], [lTop], [lRight], [lBottom], [AccessMode])

The CreateRegionAccess Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McFrame.
vTypeOptional. A Variant value.
lChannelOptional. A Long value.
lLeftOptional. A Long value.
lTopOptional. A Long value.
lRightOptional. A Long value.
lBottomOptional. A Long value.
AccessModeOptional. A mcRegionAccessMode enumeration, as described in settings.

[in, defaultvalue(mcramReadWrite)

Settings

The settings for AccessMode are:

ConstantValueDescription
 mcramReadWrite0

Access may be both read and write

 mcramReadOnly1

Access will be read only. An attempt to write to such an McRegionAccess instance will result in an error.

 mcramWriteOnly2

Access will be write only. For a cast Type this avoids an unnecessary cast when the McRegionAccess is created.