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 » Thu Nov 03, 2011 12:44 pm

hello,
how to select part of an image from annotationviewer

Thanx

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

Re: Select part of image in annotationviewer

Post by Alex » Mon Nov 07, 2011 1:53 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest