Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

units?????

 
denish mehta
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Java folks
I have a question
when we use method maxAscent() etc of Font class what are the units of the integer value return??
Are the also the same as points(1/72'')??
regards
Denish
 
ryan burgdorfer
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The return value is in pixels.
------------------
  • Ryan Burgdorfer
  • Java Acolyte in
  • Columbus, OH USA
 
ryan burgdorfer
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And no, they are not the same as points..."pixel" stands for picture element, and each pixel is a group of 3 phosphors on your monitor screen (one each of red, green, and blue)...thus a pixel is the smallest unit of any possible color.
Hope that helps...
------------------
  • Ryan Burgdorfer
  • Java Acolyte in
  • Columbus, OH USA
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic