Page 1 of 1

Select part of image in annotationviewer

Posted: Thu Nov 03, 2011 12:44 pm
by XPERT - AFRICA
hello,
how to select part of an image from annotationviewer

Thanx

Re: Select part of image in annotationviewer

Posted: Mon Nov 07, 2011 1:53 pm
by Alex
Hello,

You need:
  • Enable the Selection visual tool in the AnnotationViewer

    Code: Select all

    Selection selection = new Selection();
    AnnotationViewer.CurrentTool = selection;
  • Select part of image using mouse or programmatically

    Code: Select all

    selection.Rectangle = new Rectangle(...);
  • Get a selection as image using the Selection.GetImage() method

    Code: Select all

    VintasoftImage image = selection.GetImage();
Best regards, Alexander