This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, July 13, 2011 3:51:41 AM(UTC)
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.
#2
Posted
:
Wednesday, July 13, 2011 11:44:31 PM(UTC)
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)
Groups: Guests
Posts: 3,022
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.