Re: Can I specify an image as a background?



Mumia W. wrote:
On 06/07/2010 01:00 PM, Jim Lynch wrote:
I have a map (.jpg file) that I am displaying on a canvas. I would like to periodically (via Tk::repeat) update with a small icon and text designating the position of something on the map. From the man page it doesn't look like I can make a background from an image. Any suggestions as how I might get the desired behavior would be appreciated.

Thanks,
Jim.

Why not create an image item normally and create a text item on top of that?


I didn't try to create a text item, but I did attempt to load another image. That erased the original. I'm looking at the copy method to see if it might let me place a smaller image on top of the bigger one. I figured once I got the icon placed, I'd worry about the text later. One thing at a time. :)

Thanks,
Jim.
.



Relevant Pages

  • Re: Can I specify an image as a background?
    ... On 06/07/2010 01:00 PM, Jim Lynch wrote: ... to periodically update with a small icon and text designating the position of something on the map. ...
    (comp.lang.perl.tk)
  • Re: Can I specify an image as a background?
    ... like to periodically update with a small icon and text designating the position of something on the map. ... drew the first image it is first in the display list, ...
    (comp.lang.perl.tk)
  • Re: Can I specify an image as a background?
    ... like to periodically update with a small icon and text designating the position of something on the map. ... drew the first image it is first in the display list, ...
    (comp.lang.perl.tk)
  • Displaying rotated ImageIcon on JScrollPane with menu bar
    ... map, so I am drawing on a JPanel inside a JScrollPane inside a JFrame. ... Graphics2D.drawImageto draw the map image on the JPanel. ... Transformation to rotate the graphics around the icon position ... public class ScrollMap extends JFrame ...
    (comp.lang.java.gui)
  • Creating Interactive Maps
    ... I need to display a map of North American on the Map. ... to drag icons from another window onto the map. ... need to "capture" the icon and determine whether or not the icon is in ... America with the cities Los Angeles, New York, Dallas, Tampa Bay, ...
    (comp.lang.java.gui)