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

How to acquire current ROI angle

How do I programmatically determine an ROIs angle after the operator as positioned and rotated the ROI?

Best Answer

  • Accepted Answer
    Rod, here is some sample code, assuming the image contains at least one rectangular ROI.

        Sub PrintAngle
            Dim bounds
            Dim angle As Double
            ThisApplication.ActiveImage.Aoi.GetRotatableBox(0,bounds,angle)
            Debug.Print(angle)
        End Sub

Answers

Sign In or Register to comment.