InterlaceSeparate Method

NI Vision for Visual Basic

InterlaceSeparate Method

Syntax

CWIMAQVision.InterlaceSeparate SourceFrame [, DestOdd] [, DestEven]

Return Type

Long

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

Purpose

Separates a frame image into two field images.

Remarks

Use this method with all image types.

Parameters

SourceFrame As CWIMAQImage

The source frame to separate.

DestOdd As Variant

[Optional] On return, the odd field.

DestEven As Variant

[Optional] On return, the even field.

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

InterlaceCombine