Forum 'VintaSoft Imaging .NET SDK and Plug-ins Discussions'

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

Login

Select part of image in annotationviewer



Select part of image in annotationviewer

Post by XPERT - AFRICA »

hello,
how to select part of an image from annotationviewer

Thanx


Re: Select part of image in annotationviewer

Post by Alex »

Hello,

You need:
  • Enable the Selection visual tool in the AnnotationViewer
    Selection selection = new Selection();
    AnnotationViewer.CurrentTool = selection;
  • Select part of image using mouse or programmatically
    selection.Rectangle = new Rectangle(...);
  • Get a selection as image using the Selection.GetImage() method
    VintasoftImage image = selection.GetImage();
Best regards, Alexander


Page 1 from 1: 1