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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, July 21, 2006 5:49:02 AM(UTC)
Brundlefish

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

 

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, July 24, 2006 3:45:59 AM(UTC)

Bashar  
Guest

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)
Brundlefish

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)

Bashar  
Guest

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.

File Attachment(s):
CombinePolygonRegion.zip (27kb) downloaded 30 time(s).
 
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-2024, Yet Another Forum.NET
This page was generated in 0.061 seconds.