SetSize Method
Syntax
CWIMAQStructuringElement.SetSize Width, Height
Purpose
Sets the width and height of the structuring element matrix simultaneously.
Remarks
This is a destructive operation. After setting the size, all elements of the structuring matrix will have the value 1.
Parameters
Width As Long
The new width of the structuring element matrix.
Height As Long
The new height of the structuring element matrix.
Example
'Create a new structuring element and set its size to 7x7 Dim StructuringElement As New CWIMAQStructuringElement StructuringElement.SetSize 7, 7