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 : Saturday, September 5, 2009 7:29:58 AM(UTC)

prasad  
prasad

Groups: Registered
Posts: 4


Hi,

I want to develope an web application where the user can crop the portion of the image he want. The cropped region should be displayed in a separate image control the moment he releases the mouse.

I have used the Lead Tools Crop command to display the default cropped portion. On load of the web page the Cropped portion will be displayed in the separate image control.

If the user is not satisfied he can crop the desired portion of the image using mouse.

Can anyone provide me a sample code to implement the above scenario?

 

 

 

 

 

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 : Sunday, September 6, 2009 5:05:40 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,022

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

What LEADTOOLS control are you using in your web application to view the images?
Do you want to create a thin client web application or a thick client?
Will the images be stored on the server side or the same machine where the image is displayed (client side)?

 
#3 Posted : Wednesday, September 9, 2009 12:22:40 AM(UTC)

prasad  
prasad

Groups: Registered
Posts: 4


I am using normal asp:image control to display the image. For default cropping i have used the Crop Command available in Lead Tools.

The web application is of type Thin Client.

The Image should be stored in Database in the Server. To display the cropped image in the client machine i am storing it in a local path, when the user clicks save button cropped image is stored in DB and  delete the items in the local path.

Thanks For your Response

 

 
#4 Posted : Wednesday, September 9, 2009 4:42:07 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,022

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

Although you might be able to write a JavaScript that will capture the mouse coordinates and send them "somehow" to the server side. However, I don't expect this to be easy.
Your alternative would be to use a rich-client application. For example embed our .NET RasterImageViewer in a .NET user control.
You can check the "Embed our WinForms Control (RasterImageViewer) in a Web IE" example from the following link:

http://support.leadtools.com/SupportPortal/CS/forums/15977/ShowPost.aspx

Edited by moderator Thursday, November 10, 2016 7:22:03 PM(UTC)  | Reason: Not specified

 
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.073 seconds.