screen.TwipsPerPixel

screen.TwipsPerPixel

Post by Rist » Fri, 18 Apr 2003 22:41:29



I have not yet figured out a situation where VB Screen.TwipsPerPixelX would

differ from Screen.TwipsPerPixelY with a regular monitor.

As Screen.Width / Screen.TwipsPerPixelX returns monitor pixels in X
direction

and  Screen.Height / Screen.TwipsPerPixelY in Y direction is it that

Screen.TwipsPerPixelX and Screen.TwipsPerPixelY are  different

only for special monitors with something else than a "round" or symmetrical

pixel shape, perhaps a laptop or have I misunderstood something?

Risto

 
 
 

screen.TwipsPerPixel

Post by Mike D Sutto » Fri, 18 Apr 2003 23:09:01


Quote:> I have not yet figured out a situation where VB Screen.TwipsPerPixelX
> would
> differ from Screen.TwipsPerPixelY with a regular monitor.

> As Screen.Width / Screen.TwipsPerPixelX returns monitor pixels in X
> direction

> and  Screen.Height / Screen.TwipsPerPixelY in Y direction is it that
> Screen.TwipsPerPixelX and Screen.TwipsPerPixelY are  different
> only for special monitors with something else than a "round" or
> symmetrical
> pixel shape, perhaps a laptop or have I misunderstood something?

Generally on 'normal' monitors they are indeed the same (Either 15 with
small fonts or 12 with large font drivers) however some specialised hardware
set up for an anisotropic scaled device will report different values.
Unless you can be 100% sure of the environment and hardware your application
is to be run on, it makes sense to just use the correct one.
Hope this helps,

    Mike

 -- EDais --

 - Microsoft Visual Basic MVP -
WWW: Http://www20.brinkster.com/EDais/



 
 
 

screen.TwipsPerPixel

Post by Rist » Fri, 25 Apr 2003 07:00:59


Thanks Mike, you saved my day;)  risto.



> > I have not yet figured out a situation where VB Screen.TwipsPerPixelX
> > would
> > differ from Screen.TwipsPerPixelY with a regular monitor.

> > As Screen.Width / Screen.TwipsPerPixelX returns monitor pixels in X
> > direction

> > and  Screen.Height / Screen.TwipsPerPixelY in Y direction is it that
> > Screen.TwipsPerPixelX and Screen.TwipsPerPixelY are  different
> > only for special monitors with something else than a "round" or
> > symmetrical
> > pixel shape, perhaps a laptop or have I misunderstood something?

> Generally on 'normal' monitors they are indeed the same (Either 15 with
> small fonts or 12 with large font drivers) however some specialised
hardware
> set up for an anisotropic scaled device will report different values.
> Unless you can be 100% sure of the environment and hardware your
application
> is to be run on, it makes sense to just use the correct one.
> Hope this helps,

>     Mike

>  -- EDais --

>  - Microsoft Visual Basic MVP -
> WWW: Http://www20.brinkster.com/EDais/



 
 
 

1. twipsperpixel

Hi,

Can anyone help me with this. I try to retreive the width and the height
from a picturefile (i.e. logo.gif)
through the Image object I can retreive the measures in twips but I don't
find the right way to convert it to
pixels.

Any idea ?

tx

Hans

2. Cheap lights, Cheap setup...

3. IE 5.0 screen shaken off of my screen

4. 2700+ AutoCAD Utilities

5. NEEDED: Screen Capture that does screen savers?!

6. 3dsmax license

7. Need screen shots of Macintosh startup screens

8. Screen Capture Startup Screen?

9. off screen z buffer->on screen RGB

10. wanted, how to do a screen dump of a VGA screen

11. Screen dump from EGA/VGA screen to HP LaserJet II