Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Monday, September 14, 2009 3:40:32 AM(UTC)


Groups: Registered
Posts: 2

Hello ,

I am using Leadtools Raster Imaging Pro 15.0 in VS 2005 and c# is the implementation language.

I want to pre define a rectangle on LEADRasterViewer and user must be able to move this rectangle withing the viewer using the mouse.
Upon press of a button the image must be cropped to pre-defined rectangle.
How to implement it? Please provide me some code snippet to implement this.

Thanks and Regards
Hemant BK


Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, September 15, 2009 2:44:07 AM(UTC)

Adam Boulad  

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You can do this by creating an annotation object which can be moved by mouse, and when needed obtain the object's coordinates for the cropping process.

If you don't own a toolkit with Annotations support (Document Imaging or above), you can draw the rectangle you need on the RasterImageViewer control itself and handle the mouse events to move it around. You will also need to perform coordinate conversion from the controls client area to the displayed bitmap before you do cropping.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.053 seconds.