wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes units????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "units?????" Watch "units?????" New topic
Author

units?????

denish mehta
Ranch Hand

Joined: Dec 21, 2000
Posts: 135
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

Joined: Jan 24, 2001
Posts: 219
The return value is in pixels.
------------------
  • Ryan Burgdorfer
  • Java Acolyte in
  • Columbus, OH USA


<UL TYPE=SQUARE><I><LI>Ryan Burgdorfer<BR><LI>Java Acolyte</I></UL>
ryan burgdorfer
Ranch Hand

Joined: Jan 24, 2001
Posts: 219
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
 
GeeCON Prague 2014
 
subject: units?????