InterlaceCombine Method

NI Vision for Visual Basic

InterlaceCombine Method

Syntax

CWIMAQVision.InterlaceCombine SourceOdd, SourceEven, DestFrame

Return Type

Long

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

Purpose

Combines two field images to create a single frame image.

Remarks

Use this method with all image types.

Parameters

SourceOdd As CWIMAQImage

The odd field.

SourceEven As CWIMAQImage

The even field.

DestFrame As CWIMAQImage

On return, the combined image.

Example

' This example swaps every alternate row in the image on Viewer1
Dim even As New CWIMAQImage
Dim odd As New CWIMAQImage

' First separate the even and odd frames of the image on Viewer1.
CWIMAQVision1.InterlaceSeparate CWIMAQViewer1.Image, odd, even

' Combine the even and odd frames so that the old odd is
' the new even frame and the old even is the new odd frame.
' Store the result in the image on Viewer1.
CWIMAQVision1.InterlaceCombine even, odd, CWIMAQViewer1.Image

See Also

InterlaceSeparate