• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Check out https://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
reply
    Bookmark Topic Watch Topic
  • New Topic