Friday, November 19, 2010

What is the adavntage to use twips in VB?

A twip (loosely from twentieth of a point) is a typographical measurement, defined as 1/20 of a typographical point. One twip is 1/1440 inch or 1.7639 碌m when derived from the PostScript point at 72 to the inch, and 1/1445.4 inch or 1.7573 碌m based on the printer's point at 72.27 to the inch.





[edit] Twips in computing

Twips are the default unit of measurement in Visual Basic (version 6 and earlier, prior to VB.NET). When in Microsoft Windows ';small fonts'; mode, 15 twips are equal to one pixel. 1cm is equal to 567 twips.



Twips are also a commonly used unit with Symbian OS bitmap images.



(if device independent is the advanage then what does it mean(how can it be device independent if it is depends on the resolution??))What is the adavntage to use twips in VB?
The first half of your question is the 'why'. What the second part didn't elaborate on is that 15 twips equal one pixel on a specific platform at a specific resolution (Wikipedia's a bit short-changed on that bit of information). The resolution of a monitor and it's physical size come into play when determining the twips:pixel ratio.



Twips were used so that no matter what the environment, things would look the same. When you get right down to it, the pixel is the native unit on a monitor. Twips were most likely a holdover from the earlier paradigm of digital media as an alternate form of print media.

No comments:

Post a Comment