ImagePro>using IpBlbGet(GETPOINTS)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ImagePro>using IpBlbGet(GETPOINTS)



hi all,
 
i've encountered a problem where if i try to take the outlines from one
image and draw them on a different image the last point of each outline is
always missing.  this is the code i'm using.
 
 
ret = IpAppSelectDoc(0)
numPoints = IpBlbGet(GETPOINTS, i, 1000, Outline(0)) 
ret = IpAppSelectDoc(1)
ret = IpAnCreateObj(GO_OBJ_POLY) 
ret = IpAnPolyAddPtArray(Outline(0), numPoints)    
ret = IpAnSet(GO_ATTR_PENWIDTH, 1)
ret = IpAnSet(GO_ATTR_PENCOLOR, 255)
 
if i use some code to look at the points the last pair in each outline
is always 0, 0. 

 Debug.Print numpoints
 For i = 1 To numPoints
     Debug.Print Outline(i).x
     Debug.Print outline(i).y
 Next i
 
Any suggestions?
 
thanks,
John McLaughlin
Rigel, Inc.
240 East Grand Avenue
South San Francisco, CA
94080



Search this Archive