eCo Software
doesn't receive
payments from USA

 
Update

 
Applications

 
Advantages:

 
For developer:

 
(Пайпы программ)

 
Companies:

 
History:

 
(Бонусы)

 
Advice:

 
(Барьеры и решения)

 
Technologies:

 
(Применение в науке, лаборатории, ..)

 

 
Solutions

 
New eComStation:

 
Future:

 
(Ссылки на другие сайты)

 
(Картинка дня)

 
OS/2 artefacts:

 
Gadgets:

AD: Upgrade ArcaOS to NeoWPS level

  • Install original PNG icons drawed by designer, specialized at OS/2 adornation.
  • Install eSchemes 2019 to change colors and buttons on desktop.

What is dpi and how to design dialogs


TITLE: What is dpi and how to design dialogs

DATE: 2009-03-20 22:36:05

AUTHOR: Dmitry A.Steklenev

Please use online translator
go to http://translate.google.com
and request the translation of http://ru.ecomstation./showarticle.php?id=192
to your language

... ..... dpi . ppi

dpi (............ ... ......) - .......... ... ..... dots per inch .......... ..... .. ........ ..... ........... ... ........ ........... ........... ........ ......... .......... ...... ....., ............ .. ........ .... ............ ........ ........... 600x300 dpi ... ........ ........, ... ... ........... ........... ..... 600 ..... .. ........... . 300 ..... .. ......... .. 1 .....

ppi ..... pixels per inch - .......... ........ .. ........ ..... .., ... .......... ........... ........... ...... ....., .. ..... .... ........ .......... ppi - .......... ........ .. ........ ..... ....... - ............ ...... ....... ............

. .......... ..... .............. ...... dpi.

..... ..... ..... ........... ........... ......

...... ........... ........... ...... ......... ............ ........... .......... ....... ..., ..... .. .... .. ...... ............ .......... ........ ........, ..... .......... ....... .. ........ . .... ...., ..... ....... .. ..... ........ . ........... ............ . 96 dpi ......., ...... ....... ........ ....... .. 96 ......... . ... .... ..... .......... .... .. ....... .. ........, ....... ........... ........... . 600 dpi, ... ....... ...... ........ .. 600 ......

...... 96 dpi . 120 dpi

........... VGA ......... ........ 80-. ..... ..... .......... . ...... .. 70 .. 74 dpi. ...... "..........." .......... ... ...... .... ........ ........... Macintosh ........ Apple, ........... ........... ....... .... ..... 72 dpi. .. .... ......... .... ...... ............. ...... ............. ......, ....... ... ... . ..... 1/72 ......

..... .... ........, ... .......... .. ............. ..... .. ........... ........ . ....... .. 1/3 ......... ........... .......... .. ..... ...... . ........... .. ........ ....... ....... .... ... .... ..... ............ .. ........ ...... .... ... .. .......... ......, ..... .. ..... ..... ..... .. ......, ... ..... ...... .. 1/3 ....... ... ....... .... ........ ... ...... ........ ......, ............ ....... ..... ........... ... ......... . . ........... ............ . ...... 72 dpi ........ . 96 dpi.

....., IBM ........... ....... 8514, ....... ........ ........... ........... . 96 dpi, . .............., . ............ ....... .... ........ ......... ........... ........... . 120 dpi.

.. ...... ......, ........ .... ......... . ................. ........... ......... . ............... ............ .... .. ... ... ....... ......... .. . ............ ............. ....... ......., .. ....... ......, Windows ....... ... ........ ........ ........... ........... . 96 dpi . ......... ....... ....... ... ........ .. 120 dpi, . OS/2, .. ........., ....... ... ........ . ........... ...... 1024x768 ........ - .......... . ........... ............ . 96 dpi, . ... ......... - .......... . ........... ............ . 120 dpi.

..... ..... ............ ........ ........... ........... ........

..... ..... ......... ...., ... ......... ........ dpi ... ...... ........, ... .. ...... .......... ... .......... ....... ......... ..........., . ...... ........ .. ........... ............ .... .... ..... .. ...... . ......... ............ ........... ............ ........ ........., .. ..... ...... ............ ...... ......, . .. dpi .......

.. ..... ...... ......... dpi ... ...... ........, ....... ........ .... .. ...... ...... . ........ .......... ........, ............... .... ......., .. .......... ......... ...... ....... ..... .. ........, ... ... ... ........... ........ .......... .......... ....... ., .............., ..... .......... ........... ........... .. ........... . ..........

..... ...., .... .......... ...... . ........ .. ......... . ..........., . ..... .... ..... ......... ........ . ........ ......, dpi ...... ..... ..... .......... .. ......... .......:

......... ........... ............ ........... ...........

...... ........ - ... .............. ........ ........ .. ...... ...... . ...., ... ......... ... ...... ..... ...... .. ......... ...... . ..... .......... ......... ....... . ........... ......... .. ........, ... ........ ........ .......... ....... ....... ........... ..........., ... ........ ........... ..... ........ ....... ........, ... ......... ............ .. .......... ............. ....... ...... ., . .........., ..... ..... ......... .......... .. ......... . ......... ............ dpi. ..... .. ........ ..... .......... . . .......... .......... ..........

... ...... ........... ........... ......, ............ ........

... ..... . OS/2 ..... ........ ......... .........., ............. ... ........... ........ ...... ........ ... ......... .......:

HPS   hps  = WinGetPS( HWND_DESKTOP );
HDC   hdc  = GpiQueryDevice( hps );
LONG  hres = 0;
LONG  vres = 0;

DevQueryCaps( hdc, CAPS_HORIZONTAL_FONT_RES, 1L, &hres );
DevQueryCaps( hdc, CAPS_VERTICAL_FONT_RES  , 1L, &vres );

....... .......

...... ....... . OS/2 ........... . ............ ........ .... ............ ..... ..... 1/72 ...... ......., ... ............... ........... ...... . ........., .......... ........... ... ...... . ...... ....... ........... ........... ....... .... ............... .........., ........... . .......... ......., .. ........ ... ......... .......:

SIZEF size;

size.cx = ( MAKEFIXED( font_size, 0 ) / 72 ) * hres;
size.cy = ( MAKEFIXED( font_size, 0 ) / 72 ) * vres;

GpiSetCharBox( hps_to_draw, &size );

....... .......

...... . OS/2 ..... ...... . 1/3 ...... ... .... ....... ........... ...... . 1/6 ...... ......., ... ............. ........... ........... . 96 dpi, ...... ...... ..... ...... . 32x32 . 16x16 ......... ... 120 dpi - .... ...... .......... .. 40x40 . 20x20 ........ ............... ...... ....... ......, ............ ........, ..... . ....... ....... WinQuerySysValue:

LONG icon_width  = WinQuerySysValue( HWND_DESKTOP, SV_CXICON );
LONG icon_height = WinQuerySysValue( HWND_DESKTOP, SV_CYICON );

. ........... ........ ........

.......... . ........ ........ ........ . ........... ......... ... ....... .......... .. ....... ....... ....... ......, ............. ........ .. .......... .... ....... .. ........... ..... 1/4 ...... ...... ......., . .... ....... .. ......... ..... 1/8 ...... ........

... ... ....... ...... ....... ..... .......... ... ......... dpi ......, .. ............. ..... ......... ..........., ... ...... ..... ............ . ........... ........ . ....... .......... ........ ... ..... dpi .......

....... ...... ....... ... ...... .. ......... ..... ..... ........ . .........., ............. ... ........... ........ .....:

HPS   hps = WinGetPS( HWND_DESKTOP );
HDC   hdc = GpiQueryDevice( hps );
LONG  char_height = 0;
LONG  char_width  = 0;

DevQueryCaps( hdc, CAPS_GRAPHICS_CHAR_WIDTH,  1L, &char_width  );
DevQueryCaps( hdc, CAPS_GRAPHICS_CHAR_HEIGHT, 1L, &char_height );

OS/2 .......... ....... ...... ....... . 13x13 ........ ... ........... ........... . 96 dpi . 16x16 ... 120 dpi. ......., .... ....... ......... ....... ....... .. ........... ..... ..... 3.25 ....... ... 96 dpi . 4 ....... ... 120 dpi. .. ......... ......... ......... ........ - 6.5 . 8 ........ ...............

..... ......

... ..... .. ........... ......, ... ........ ................. .......... OS/2 ............. .. ... ......... ........... ........... - 96 dpi . 120 dpi. ......... . ........... .............. ........... ...... ............. ........... ........... ...... ..... ...... ................. .. ......... ........, ...... ......... ........ dpi ......, .......... ....... ...... ......, ...... ....... . ...... ......... ..... ....... ...... ........ ............. ........ . ........ . ......... ............. ........, .... ........ .......... .......... .......... . ............ ............ ............

. ........., ... ........ Panorama, ...... ... .......... .......... ........ ............ ....... ...... ......, ....... ...... ....... . ....... ...... ........ ........ .......... ... ........... ........... . 120 dpi. ...... ...... ......, ...... ...... ....... . ...... ...... ........ ........ .......... ... ........... ........... . 96 dpi. ... ......... .......... .......... ........ ......... . .. ...... ............

............ ... .............

  1. ...... .......... ................ ......... ......... . .............. ........ ......... ..... ......... ..... ............ ......... ... ......... ........... ............ .......
  2. .... .. .....-.. ........, ............. ........ ........ ........ ............, ......... .......... ........... ......... .......... . ........ ........ . ............. .. . ....... .......... .......... . ....... ....... WinMapDlgPoints.
  3. ...... ........... . ........ ........... ......... ........ ........... ...... OS/2. .. ........... ......... ..........., ... ... ... .. .............. ... ......... ........... ........... .......
  4. .... ............. .......... ........... . ....... ........ ..........., ........... ... ............ .... . ........, ............... ........... ........... . 96 dpi, . ...... - ... 120 dpi. ............ ...... ........... ... ............. ....... . ........... .. ....... ........... ........... .......
  5. ... ........ ............ ...... OS/2 .......... ... ........... ... ...........: 40x40, 32x32, 20x20 . 16x16 ......... ..... OS/2 ..... ........ .............. ........... .............., . ... . ... .. ...... ...... ...........
  6. ............ .........., ... ........ ......... ... ........... ..........., ........ .. ..., . ....... .. ......... ..........

Test the program:

How to accelerate read/write to USB flashdisk? FAQ -> Q7

Commenti:

Digi
2009-03-24 02:04:01

.......-.. ... ..... .... . .... ...... ........ ...., ... ....... . .. .....

Sergey Posokhov
2009-03-25 19:19:11

........ . ........ .... ...... (...... .......), .. ....... .. ......... ........

Milena
2009-06-02 09:37:01

.......! ... .... . ..... .........

.....
2009-06-02 21:53:33

C......!

.....
2009-09-14 17:55:30

......... .. ......! ..... . ........

.....
2010-08-19 18:27:59

..... ...... !

.. .............., . ..... ............ ..... ...... ...... .. ....... . .... .......

........ 600x300 dpi.

. ..... ..... .......... . 192 pdi?

.. ....... . .. ......, ..... ... ... ...... ..... ....... . .. ...... .........

.....
2013-01-23 10:51:32

....... .......!

Digi
2016-12-15 09:09:18

...-.. .. ... . ....... ". ........... ........ ........": "....... .. ........... ..... 1/4 ...... ...... ......., . .... ....... .. ......... ..... 1/8 ...... .......", . .....: ".. ......... ......... ......... ........". .. 1/8 ... ..... .. ......... 1/4. .....: "OS/2 .......... ....... ...... ....... ... 16x16 ... 120 dpi". . . .... .. DevQueryCaps() .......... 20.20. . ........., .. .... .......... . .... .. .......... ........ ..... .. ........ ......... ......... . ....... ... .......... ... .......... .. ........

Commenta questo articolo.


Il tuo nome:

La tua E-Mail:

CODE:
252371......

  

Il tuo commento:


eComStation 2.0 is ready for ACPI computers. The operating system was modified (during 3 years) to support new PC computers (various drivers were updated, the parameters of the system were changed) eCS 2.0 what's new

Articoli

Sistema Operativo
Software
Hardware
Per sviluppatore
Miscellanea
Dall'editore





Ultimo sondaggio attivo: What is the height of RPM barrier?

[Google]

IBM OS/2 Warp

 
For dummies

Report: OS/2 compatible hardware

 
Reviews


     
  Why eComStation?
Features
Advantages
Usage
Clips and screenshots
   eComStation for
for businessmen
for students and engineers
for reselles of computers
community of users
   Developer
Distribute the program
Description of API, libraries
Start new project
Competition
   Applications
On-line catalogue
Select from eCo Market
   Support service
Contact the web-master
Buy eComStation
Frequently asked questions
for Beginners
 
 
© 2001 - 2025 eCo Software, All rights reserved
Сибирский Медведь **********
eComStation Serenity Systems International • OS/2 Warp IBM Corporation • ArcaOS Arca Noae