Returns or modifies the mask of a text object.
Rhino.TextObjectMask (strObject [, intSource [, lngColor [, dblOffset]]])
strObject |
Required. String. The identifier of the object. |
||||||||
intSource |
Optional. Number. The mask color source. This determines where to get the color to draw a text mask.
|
||||||||
lngColor |
Optional. Number. The RGB color of the mask. This is only applicable if intSource = 1. |
||||||||
dblOffset |
Optional. Number. Offset for the border around text to the rectangle used to draw the mask. This number * TextObjectHeight for the text is the offset on each side of the tight rectangle around the text characters to the mask rectangle. |
Array |
If the text object has a mask, then the current or previous mask information, depending on whether or not intSource is specified, if successful. The array will contain the following information:
|
||||||||
Null |
If the text object does not have a mask, if not successful, or on error. |
Dim strObject, arrMask
strObject = Rhino.GetObject
arrMask = Rhino.TextObjectMask(strObject, 1, RGB(128,0,128), 0.1)
If IsArray(arrMask) Then
Rhino.Print arrMask(0)
Rhino.Print arrMask(1)
Rhino.Print arrMask(2)
End If