File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Drag and dropping images to another image with richfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Drag and dropping images to another image with richfaces" Watch "Drag and dropping images to another image with richfaces" New topic
Author

Drag and dropping images to another image with richfaces

Juan Manuel Diaz
Ranch Hand

Joined: Mar 23, 2009
Posts: 53
Hi greenhorns!,

I am needing some component (avoiding an applet) in which the user can add to a predefined image, three kind of items: a point, a line or a circle. The idea is to set up a mammography report, in wich the doctor can add those items to the image of the busts.

Do you any idea about how I can do that?

I am thinking in Paint2D component, wich comes with RichFaces 3.0.0 (or later), but I dont know if it could do that for me.

Regards!
JM
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16057
    
  21

RichFaces has extensive drag and drop support, and you can certainly set up a control such that dropping something on it would fire an AJAX event so that the server could do something with it - possibly merging images and re-rendering the updated target image.

For client-side image manipulation, it depends on what exactly you want to do.


Customer surveys are for companies who didn't pay proper attention to begin with.
Juan Manuel Diaz
Ranch Hand

Joined: Mar 23, 2009
Posts: 53
Hi! Thanks for the reply.

I thought about that, but the thing is: how can i know the exact point in which the image was dropped? So, if i know the coordinates, i can merge the images.

Regards,
JM
 
Consider Paul's rocket mass heater.
 
subject: Drag and dropping images to another image with richfaces