Twip
Template:Short description Template:About Template:More footnotes needed Template:Infobox unit A twip (abbreviating "twentieth of a point" or "twentieth of an inch point"<ref>The Free On-line Dictionary of Computing:
http://foldoc.org/twip</ref>) is a typographical measurement, defined as Template:Frac of a typographical point. One twip is Template:Frac inch, or 17.64 μm.<ref>{{#invoke:citation/CS1|citation
|CitationClass=web }}</ref>
In computingEdit
Twips are screen-independent units to ensure that the proportion of screen elements are the same on all display systems. A twip is defined as being Template:Frac of an inch (approximately 17.64 μm).
A pixel is a screen-dependent unit, standing for 'picture element'. A pixel is a dot that represents the smallest graphical measurement on a screen. Twips are the default unit of measurement in Visual Basic (version 6 and earlier, prior to VB.NET). Converting between twips and screen pixels is achieved using the TwipsPerPixelX and TwipsPerPixelY properties<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> or the ScaleX and ScaleY methods.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
Twips can be used with Symbian OS bitmap images for automatic scaling from bitmap pixels to device pixels.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> They are also used in Rich Text Format from Microsoft for platform-independent exchange and they are the base length unit in OpenOffice.org and its fork LibreOffice.
Flash internally specifies most sizes in units it calls twips, but which are really Template:Frac of a logical pixel,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> which is Template:Frac of an actual twip.<ref>Flash logical pixels are the same as HTML logical pixels, of which there are 96 to an inch, rather than 72</ref>
See alsoEdit
ReferencesEdit
- Template:Cite book
- MSDN Library — com.ms.wfc.ui.CoordinateSystem.TWIP
- Free On-Line Dictionary of Computing — twip
- Foundation, ActionScript 3.0 Animation, Making Things Move! by Keith Peters Template:ISBN (pbk)
- Converting between twips and pixels - Ruby code