Resample Method

NI Vision for Visual Basic

Resample Method

Syntax

CWIMAQVision.Resample SourceImage, DestImage, Method, NewWidth, NewHeight, Left, Top, Width, Height

Return Type

Long

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

Purpose

Obsolete—Use Resample2 instead. Resizes an image to a given resolution.

Remarks

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

SourceImage and DestImage must be the same type of image. After execution, the size of the destination image is NewWidth x NewHeight. For fast zero-order scaling, use Extract with xSubSample = 1 and ySubSample = 1.

Parameters

SourceImage As CWIMAQImage

The image to resample.

DestImage As CWIMAQImage

The image into which the method places the resampled data. This image may be the same as SourceImage.

Method As CWIMAQInterpolateMethods

The method of interpolation.

NewWidth As Long

The new width of the resampled area.

NewHeight As Long

The new height of the resampled area.

Left As Long

The left edge of the region to resample.

Top As Long

The top edge of the region to resample.

Width As Long

The width of the region to resample.

Height As Long

The height of the region to resample.

See Also

Resample2