[[ header START ]]

Welcome to OS2.GURU site! (eComStation.RU)

Select your language: Russian English Deutch Spanish Italian Portuguese Czech Polish French

Frequently asked questions and answers:
telegram

Форум обсуждение

telegram

Send message

telegram

[ +7-981-8529467 (Санкт-Петербург)

telegram

t.me/os2_guru

eComStation.RU


ru · en · de · es · it · pt · cz · pl · fr
OS/2 is a greatly different operating system for PC (ArcaOS, eComStation, IBM OS/2 Warp)
Applications, news, reviews, support of users, hardware, questions and answers.
 
[What is OS/2?  News  Install  Update  
 
 
Usage  Future  Community  Projects  

How to buy
russian OS/2 apps?

The concept of
OS/2 development

(Map of the site)

 
 
[[ head-3-search ]]

Database of OS/2 compatible hardware

[[ head-3-search END ]]

 
Update

 
Applications

 
Advantages:

 
For developer:

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

 
Companies:

 
History:

 
(Бонусы)

 
Advice:

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

 
Technologies:

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

 

 
Solutions

 
New eComStation:

 
Future:

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

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

 
OS/2 artefacts:

 
Gadgets:

Upgrade ArcaOS to NeoWPS level

  • Install original PNG icons drawed by designer, specialized at OS/2 adornation.
  • Install eSchemes 2018 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:

Wanted a nice looking eComStation desktop, UPGRADE it now with NeoWPS.

Comments:

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. . ........., .. .... .......... . .... .. .......... ........ ..... .. ........ ......... ......... . ....... ... .......... ... .......... .. ........

Comment this article.


Your Name:

Your E-Mail:

CODE:
......

  

Your Comment:


eComStation 2.0 includes many drivers for modern hardware. What about modern fresh transparent icons? You need Sunny icons..

Articles

Operating System
Software
Hardware
For developer
Misc
From editor





Last active poll: What is the height of RPM barrier?

[Google]

IBM OS/2 Warp

 
For dummies

Database of 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 - 2021 eCo Software, All rights reserved
Сибирский Медведь технологическая компания
eComStation Serenity Systems International • OS/2 Warp IBM Corporation • ArcaOS Arca Noae