VintaSoft Annotation .NET Plug-in Discussions

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Annotation viewer crop WPF



Annotation viewer crop WPF

Post by deedubya »

Hi,

I am using latest version of Annotation viewer in WPF. I have tools for annotations and crop and can detect when the annotation ends but cannot seen to find the event which relates to the completion of the crop (WpfCropSelectionTool) as I would like to automatically turn off this tool once it has been exectued.

Thanks


Re: Annotation viewer crop WPF

Post by Alex »

Hi,

If you want to know when WpfCropSelectionTool visual tool executed WpfCropSelectionTool.Crop method, you need to do the following steps:
  • Create MyWpfCropSelectionTool class, which is derived from WpfCropSelectionTool class, and override WpfCropSelectionTool.Crop method:
    public class MyCropTool : WpfCropSelectionTool
    {
        public override void Crop()
        {
            base.Crop();
    
            ImageViewer.VisualTool = null;
        }
    }
  • Use MyWpfCropSelectionTool class in image viewer.
Best regards, Alexander


Re: Annotation viewer crop WPF

Post by deedubya »

Thanks will try that.


Re: Annotation viewer crop WPF

Post by deedubya »

Thanks that work great.


Page 1 from 1: 1