• Post Reply Bookmark Topic Watch Topic
  • New Topic

Size of image in pixels?  RSS feed

 
Michael K. Wilson
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JFreeChart (a Java library that is based the Java2D Graphics API) to create charts.

If I have to create a image with the size of 155px X 155px, what is the HTML equivalent? I mean is 155px X 155px the same is < IMG SRC = "CHART.PNG" WIDTH = "155" HEIGHT = "155" >

Is there online resource where I can plug in values in px and find out what the normal size is (in different types of units)?

Thank you!

Mike
[ May 19, 2008: Message edited by: Michael K. Wilson ]
 
Campbell Ritchie
Marshal
Posts: 56581
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please choose a more appropriate title for your posts.

I think that is the same as your HTML.

And pixel sizes vary from screen to screen, so you can get different sizes for different screens. A standard CRT screen used to be about 0.297mm per pixel, but I don't think that applies any more. I found this by googling; I think it will be helpful to you.
 
Michael K. Wilson
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much, Campbell!

I don't know what else to call the title...
 
Campbell Ritchie
Marshal
Posts: 56581
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about "Size of image in pixels?"

Only too pleased to be able to help.
 
Campbell Ritchie
Marshal
Posts: 56581
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for changing the title.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!