Home Image-Pro Automation (Macros, Apps, Reports)
Options

How to change end-of-line shape

I am currently using the below code to create a line and change the end shape to a huge tickmark.
However, it appears to change the end of the line tickmark. The beginning is determined by the default
style selected. The LineEndingStart is not part of this class.
Is there a better way to control end of line objects?
line=ovl.Add("McGraphObjLine")
line.SetHandle(1,sL, sT+(dbROIH/2))
line.SetHandle(2,sR, sT+(dbROIH/2))
line.LineEnding=MediaCy.IQL.Display.Overlays.mcGraphObjLineEnding.mcgleHugetickmark

Best Answer

  • Options
    Answer ✓
    You can use:

    line.LineEnding(mcGraphObjWhichEnd.mcgweBoth)=mcGraphObjLineEnding.mcgleHugetickmark
Sign In or Register to comment.