Description
Sets the current RegionMask offset values
-
Return Type
-
None
Nothing
-
Syntax
-
object.SetRegionMaskOffset lOffsetX, lOffsetY
The SetRegionMaskOffset Method syntax has these parts:
|
| object | An expression evaluating to an object of type McRegionAccess. |
| lOffsetX | Required. A Long value. long : The new X offset value.
|
| lOffsetY | Required. A Long value. long : The new Y offset value.
|
Remarks
The RegionMask Offset is the positive X,Y offset from the origin of the coordinates in the RegionMask property from this McRegionAccess.Image origin. It will almost always be zero for both X and Y for a RegionMask property that is assigned from an McRegions instance with the same parent image as the image backing this McRegionAccess.
The masked region of this image is computed by subtracting the RegionMask Offset from the coordinates gotten from the RegionMask.
Notes
The RegionMaskOffset is always set to zero when any assignment is made to the RegionMask property, so if must call SetRegionMaskOffset after assigning your RegionMask property.