Click or drag to resize

IMcImageFromPointsCreateImage Method

Creates an image based on points.

Namespace:  MediaCy.IQL.Operations
Assembly:  MediaCy.IQL.Operations (in MediaCy.IQL.Operations.dll) Version: 10.0.6912.0
Syntax
VB
Function CreateImage ( 
	Optional eSourceType As mcfpSource = mcfpSource.mcfpsValues,
	Optional Flags As mcImageCreateFlags = mcImageCreateFlags.mcicfDefault,
	<OptionalAttribute> vSourceImg As Object
) As McImage

Parameters

eSourceType (Optional)
Type: MediaCy.IQL.OperationsmcfpSource
what source values to use (Image or User-defined Values)
Flags (Optional)
Type: MediaCy.IQL.EnginemcImageCreateFlags
image creation flags
vSourceImg (Optional)
Type: SystemObject
optinal source image

Return Value

Type: McImage
Remarks
Type of approximation is defined by Method property.
Examples
VB
Sub CreateTPSImageFromPoints()
Images.Open "C:\Mediacy\ipwin5\Images\COLORDOT.TIF"
Dim pCoords(4) As SINGLEPOINT
pCoords(0).x = 55: pCoords(0).y = 99
pCoords(1).x = 169: pCoords(1).y = 60
pCoords(2).x = 180: pCoords(2).y = 187
pCoords(3).x = 43: pCoords(3).y = 183
pCoords(4).x = 80: pCoords(4).y = 206
With ThisApplication.ActiveImage.ImageFromPoints
.Coordinates = pCoords
.Radius = 5
.Method = mcfpmThinPlateSpline
'create image based on thin-plate spline
.CreateImage mcfpsImage
Debug.Print "Values = " & McToText(.Values)
End With
End Sub
See Also