This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, July 21, 2006 5:49:02 AM(UTC)
Groups: Registered
Posts: 2
I need to take in a set of points i.e. from and image map that may be a rect, or poly or circle. Then cut that area from a psd document, save the resulting output to a jpg file. I'm have no problem copying a rect using:
CopyRectangleCommand crect = new CopyRectangleCommand();
but I have yet to figure out a way to copy a region that is not a rect. Any information you can give me on this one would be apriciated.
I'm running the demo v20 .Net.
Edited by moderator Tuesday, April 4, 2017 12:20:26 PM(UTC)
| Reason: Not specified
#2
Posted
:
Monday, July 24, 2006 3:45:59 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
After creating the region, use the CombineCommand class to copy/paste
the region to a blank RasterImage object. This command
automatically operates on the region only.
#3
Posted
:
Monday, July 24, 2006 5:36:17 AM(UTC)
Groups: Registered
Posts: 2
Hello,
I had a look at the CombineCommand and the CombineFastCommand but I don't see how a ploygon can be used by these classes. If you could post a small amount of code that shows how a ploygon can be cut that would be greatly appriciated.
thanks.
James
#4
Posted
:
Thursday, July 27, 2006 6:17:32 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Try the attached project. It loads an image in the left viewer,
creates a polygon region on it, then copies the region to the right
viewer.
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.