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 : Wednesday, July 13, 2011 3:51:41 AM(UTC)

Dmitry  
Dmitry

Groups: Registered
Posts: 4


Hi.

Please advice the best way to split raster image into few.
I need it in a way when user can move horizontal ruler over the RasterImage and after he points to some location the underlying image is split into two ones: one over the ruler and one - below it.
Only idea I have is to crop original image twice and therefore get two truncations. But it seems to be ugly and I beleive there should be a better way.

Thanks in advance.
 

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 : Wednesday, July 13, 2011 11:44:31 PM(UTC)

Dmitry  
Dmitry

Groups: Registered
Posts: 4


Ok. I found better way to do this splitting.
I create two LeadRect objects and call Clone method of RasterImage twice to make images from original image's fragments.
 
#3 Posted : Thursday, July 14, 2011 6:17:54 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

If you don't need the original full image, you can use the new approach to clone one rectangle (the lower, for example), then crop the original image with the second rectangle (upper, for example).
This way you will save one copy operation.
 
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-2020, Yet Another Forum.NET
This page was generated in 0.093 seconds.