Symmetry Method

NI Vision for Visual Basic

Symmetry Method

Syntax

CWIMAQVision.Symmetry SourceImage, DestImage, Operation

Return Type

Long

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

Purpose

Transforms an image through its symmetry.

Remarks

Use this method with U8, I16, SGL, RGB32, and HSL32 images.

Parameters

SourceImage As CWIMAQImage

The source image.

DestImage As CWIMAQImage

The resulting image.

Operation As CWIMAQSymmetryOperations

Specifies the symmetry used.

Example

Private Sub Run_Click()
    Dim i As New CWIMAQImage
    
    ' Transform the image in Viewer1 about its center and
    ' store the result in i.
    CWIMAQVision1.Symmetry CWIMAQViewer1.Image, i, cwimaqSymmetryCentral
End Sub

See Also

CWIMAQSymmetryOperations