WriteCustomData Method

NI Vision for Visual Basic

WriteCustomData Method

Syntax

CWIMAQVision.WriteCustomData Image, Key, Data

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Associates user data with a keyname in an image.

Remarks

You can use this method with all image types.

Data stored with this method is viewable only in Visual Basic.

Parameters

Image As CWIMAQImage

The image that will hold the data.

Key As String

The keyname to associate the data with.

Data As CWIMAQData

The data to store in the image.