Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
san  
#1 Posted : Tuesday, August 22, 2006 3:56:25 PM(UTC)
san

Rank: Member

Groups: Member
Joined: 8/1/2006(UTC)
Posts: 33

Dear Alex,

Plz provide me the code sample for the croping of image using user selection area.






thnax
san
Alex Kon  
#2 Posted : Tuesday, August 22, 2006 8:46:33 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello, San

The implementation of the requested behaviour is rather straight - the only two objects which you need is RectangleRubberband and Crop transform. Instance of the RectangleRubberband class has property "Rectangle" which contains currently selected area (in bitmap coordinates). You should simply pass this rectangle into Crop transform object and apply transform to the bitmap.

Or, maybe I have not understand the problem? If so - please give more detailed description of your issue.
Users browsing this topic
Forum Jump  
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.