This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, June 22, 2005 1:25:10 AM(UTC)
Groups: Registered
Posts: 3
Hi,
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.
eg:
Leadtools.ImageProcessing.FillCommand command = new Leadtools.ImageProcessing.FillCommand();
// Fill the image with black.
command.Color =
new Leadtools.RasterColor(Color.Black);
command.Run(tempImage);
Thanks a lot.
#2
Posted
:
Monday, June 27, 2005 8:49:02 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
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.