This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#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
#2
Posted
:
Tuesday, September 15, 2009 2:44:07 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Hemant,
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.