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



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, June 22, 2005 1:25:10 AM(UTC)

Groups: Registered
Posts: 3


       I was able to display an image on the RasterImageViewer.Now what I need is that when I select a part of the image(rectangle is drawn to select the part of image ) I need only that part to be displayed and everything outside the image to be cropped(dissapeared) so only the part I selected should be left out.

* The example in LEadTools tutorials example trims 10 pixels off of each side of the image.But what I need is that when I select a part of the image and crop(is crop and trim da same thing) it,only the selected part should be left.

** Can I see some sample coding 4 this.

*** The blackout function I have implemented that is the selected part of the image is filled with Black colour works fine.The code was in the tutorial.


Leadtools.ImageProcessing.FillCommand command = new Leadtools.ImageProcessing.FillCommand();

// Fill the image with black.

command.Color = new Leadtools.RasterColor(Color.Black);


Thanks a lot.


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 : Monday, June 27, 2005 8:49:02 AM(UTC)


Groups: Manager, Tech Support
Posts: 367

More information about this post.

Through email correspondence with the customer using the LEADTOOLS
support address, it turned out that the function they're looking for is
the AutoCropCommand class, which performs automatic cropping of a different-color surrounding area of the image.

Amin Dodin
LEADTOOLS Technical Support

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
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.048 seconds.