MakePoints Method

NI Vision for Visual Basic

MakePoints Method

Syntax

CWIMAQVision.MakePoints XPointArray, YPointArray

Return Type

CWIMAQPoints

The new points collection.

Purpose

Creates a CWIMAQPoints collection from an array of the x-coordinates and y-coordinates of the points to be added to the collection.

Parameters

XPointArray As Variant

An array containing the x-coordinates of the points.

YPointArray As Variant

An array containing the y-coordinates of the points.

Example

Private Sub Run_Click()
    'Overlay a diamond on the viewer
    CWIMAQViewer1.Image.Overlays(1).DrawConnectedPoints _
        CWIMAQVision1.MakePoints(Array(100, 125, 150, 125, 100), Array(125, 150, 125, 100, 125)), _
        cwimaqOverlayModePaint
End Sub

See Also

MakeAnnulus

MakeArc

MakeLine

MakeOval

MakePoint

MakeRectangle

MakeRotatedRectangle