aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes print an image at given postion on window Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "print an image at given postion on window" Watch "print an image at given postion on window" New topic
Author

print an image at given postion on window

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

I have an image letus say example.gif
how can I place it at a given position on window
my question is how can I set the border coordinates
i.e, my image should have four coordinates as(100,200)
(300,200)(100,400)(300,400)
please help me


santhosh<br />SCJP,SCWCD
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
same way as doing it with the text.....
use the sytle tag with the top and left position
and set the width and height of the image....
 
 
subject: print an image at given postion on window
 
Threads others viewed
printing the string
Click on different part of Image.
Getting coordinates on a image
Find iframe element absolute coordinates
JLabel pan image
Two Laptop Bag