Select part of image in annotationviewer

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

Moderator: Alex

Post Reply
XPERT - AFRICA
Posts: 1
Joined: Fri Oct 28, 2011 11:42 am

Select part of image in annotationviewer

Post by XPERT - AFRICA »

hello,
how to select part of an image from annotationviewer

Thanx
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: Select part of image in annotationviewer

Post 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
Post Reply