Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Draw lines over background's image, save image & edit lines  RSS feed

 
Pankaj Gawande
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am developing an application where we have an requirement to set background image (for ex. screen shot of Google map), we want to allow user to draw a line or rectangle on top of map to show travel direction and also allow them to move line on map until they freeze image version.

User will be uploading background image that will be store in database as BLOB object, since we need to allow them to come and edit whatever lines or rectangle they drawn on map, we will have to store that information somewhere( I think database will be right place to store coordinates), please suggest the best way to do this.

We have to developed this as an Java Applet so that we can embed this within html. The place where we need to embed this applet , we are developing that application in Oracle APEX 4.0. Please tell me if you need any further information.

I am not exactly sure how to approach this. Any guide/direction will be greatly appreciated.

Thanks & Regards,

Pankaj
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Check out http://www.coderanch.com/how-to/java/BackgroundImageOnJPanel
Notice the paintComponent method. You need to use the same to draw the lines. Check out the Graphics class for appropriate methods
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!