BorderOperation Method

NI Vision for Visual Basic

BorderOperation Method

Syntax

CWIMAQVision.BorderOperation DestImage, BorderMethod

Return Type

Long

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

Purpose

Modifies the border of an image.

Remarks

This method operates with all image types.

Parameters

DestImage As CWIMAQImage

The image to modify.

BorderMethod As CWIMAQBorderMethods

The method used to fill the border of the image.

Example

Dim i As New CWIMAQImage

'Copy the value of the pixel closest to the edge of 
'the image in Viewer1 into the border.
CWIMAQVision1.BorderOperation CWIMAQViewer1.Image, cwimaqBorderCopy

'Symmetrically copy the pixel values along the border of i 
'into the border.
CWIMAQVision1.BorderOperation i, cwimaqBorderMirror