Description

Transform a list of points using the current McWarp settings.

Return Type

A Variant value.  

The resulting array of DOUBLEPOINT.

Syntax

object.ApplyToPoints ([vSourcePoints])

The ApplyToPoints Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McWarp.
vSourcePointsOptional. A Variant value.

Array of points to transform. Points to be transformed can be supplied either as number pairs, POINT, LONGPOINT, SINGLEPOINT or DOUBLEPOINT and are returned as an array of DOUBLEPOINT. A single, scalar point will be also be accepted, but the transformed result is always returned as an array of DOUBLEPOINT (which will be length-1 in the case of a single source point).

Remarks

The transformation is defined by the current value of the Method property. It can handle rotation, translation, scaling, and skewing. If Method contains wmAffine, it is a first-order linear transformation, where a straight line in the source points will remain straight in the transformed points.

Exceptions

The exception mceINVALIDARG (E_INVALIDARG) will be thrown if one of the parameters is invalid.