Expand Method

NI Vision for Visual Basic

Expand Method

Syntax

CWIMAQVision.Expand SourceImage, DestImage, Left, Top, Width, Height [, xDuplication = 1] [, yDuplication = 1]

Return Type

Long

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

Purpose

Obsolete—Use Expand2 instead. Expands an image or part of an image by adjusting the horizontal and vertical resolution.

Remarks

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

Parameters

SourceImage As CWIMAQImage

The image to expand.

DestImage As CWIMAQImage

The resulting image.

Left As Long

The left edge of the image to expand.

Top As Long

The top edge of the image to expand.

Width As Long

The width of the image to expand.

Height As Long

The height of the image to expand.

xDuplication As Variant

[Optional] The number of pixel duplications per column. The method copies the pixel columns to the destination image without duplication if you use the default value.

This parameter has a default value of 1.

yDuplication As Variant

[Optional] The number of pixel duplications per row. The method copies the pixel rows to the destination image without duplication if you use the default value.

This parameter has a default value of 1.

See Also

Expand2