473,396 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Twips and Pixels: Please confirm

I've been working with the Twips/Pixel issue and after reviewing the
Acc.Dev.Hnd book and the groups, the standard seems to be ...

640x480 15 Twips/Pixel
800x600 12 Twips/Pixel
1024x768 12 Twips/Pixel
1280x1024 12 Twips/Pixel
Some sources even say all resolutions other than 640x480 have 12
Twips/Pixel.

However...........

I'm using a 15.4 wide screen laptop and discovered through painstaking
measurements that....

640x480 15 Twips/Pixel Normal as documented
1280x800 15 Twips/Pixel What happened?
1024x768 15 Twips/Pixel What happened?
800x600 15 Twips/Pixel What happened?

These numbers were obtained by measuring a 1 pixel difference in
Also, the sizes that windows(using GetWindowRect dll call) and Access
reports for a given open form, remains the same when I change
resolutions. I thought that the pixels were different (12 vs. 15) with
each resolution, and would change when setting the resolution and
reopening the form.

Any advice or comments would be appreciated.

TIA

Nov 13 '05 #1
1 6363
On 11 Jun 2005 21:49:45 -0700, "ce*******@yahoo.com" <ce*******@yahoo.com>
wrote:
I've been working with the Twips/Pixel issue and after reviewing the
Acc.Dev.Hnd book and the groups, the standard seems to be ...

640x480 15 Twips/Pixel
800x600 12 Twips/Pixel
1024x768 12 Twips/Pixel
1280x1024 12 Twips/Pixel
No - you can't make such assumptions. It will depend on the aspect ratio of
your monitor and your dpi (dots per inch) setting in Windows. You should use
API calls to determine the dpi in the X and Y direction on your system
configuration - it won't always be the same in both directions. Note that an
"inch" here means what your programs will treat as an inch, not a physical
inch of physical distance on your screen.


Some sources even say all resolutions other than 640x480 have 12
Twips/Pixel.

However...........

I'm using a 15.4 wide screen laptop and discovered through painstaking
measurements that....

640x480 15 Twips/Pixel Normal as documented
1280x800 15 Twips/Pixel What happened?
1024x768 15 Twips/Pixel What happened?
800x600 15 Twips/Pixel What happened?


If the dpi setting is the same for all resolutions, then Twips per Pixel will
be the same as well. That's pretty normal. If you change your display
settings to Large Fonts, you'll see those numbers change.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: baruch | last post by:
Hello! I'm using PHP Version 4.3.3RC5-dev with GD Version bundled (2.0.15 compatible) to generated some graphics based on mysql data and to my surprise when I use the GD function imageline($im,...
1
by: Joop | last post by:
Hi, When I create a text field on a report with a 8 point font in it and let Access decide the size, the height wil become 0.423 cm. This comes down to 240 twips wich is 12 points. My...
1
by: Sachin | last post by:
Hi If we check Font.Height property it returns the value in pixel. How to convert the same in Twips? please guide -- sachin
0
by: Robert W. | last post by:
I'm building a simple Windows Form with tabs at the top. I'm writing some code to ensure that each tab will be wide enough to accomodate the text that will go in it - for both English and other...
7
by: Tigger | last post by:
Dear Experts, I am working on ASP.NET. I have got a problem related to the usage of Javascript in ASP.NET. Please help. The story is the following: 1) I am developing an ASP.NET application. I...
22
by: liups | last post by:
Hi, I just come across this, how can I make a form's height larger than 780 pixels? Thank you.
1
by: Jeremy | last post by:
The real reason I ask is, I want to compare the size of a winform label with the size of a crystal field. Crystal uses twips. What units are used in winforms? Pixels? Points? Jeremy
4
by: perspolis | last post by:
Hi all I have some points in twips measurement.how can I convert them to pixel measurement ? thanks
1
by: juanhernandez | last post by:
Iam printing a special form using vb6 report designer. In which I am printing 25 totals on the right side on the form. My totals take a whole standard letter page size. The last amount (total) which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.