ART GUI can interact in one of three modes:
- Edit mode lets users create or edit marks.
- Run mode lets users operate on Encryption, Image Embedded, Audio, and Button activities.
- View-only mode lets users view marks, but not add or modify them.
Your WinForms application can switch the mode from one to another by simply setting ImGearARTForms.Mode Property.
Your WPF application can switch the mode from one to another by simply setting Annotator.Mode Property.
While you are in View mode, your application will not have to deal with any ART-related events: it simply loads the image and ART marks and displays them.
If your WinForms application switches to Run mode, then it will have to start dealing with specific ART-related events. For example, for an Encryption mark, when the image and ART marks are first loaded and displayed, the Encryption mark will obscure some or all of the image. When the user moves the cursor over the mark, the cursor will change to pointing hand cursor. The ART Forms event handler will display a dialog box asking for the password to enable viewing of that portion of the image, and then (if the user gets the password correct), unobscure the image.
If your WPF application switches to Run mode, your application will not have to deal with any ART-related events: it simply loads the image and ART marks and displays and detects them.
If your application switches to Edit mode, then it will have to start dealing with specific ART-related events.