23 Apr 2013, 0:16
Hi, this is a promising engine.
Can I get device specific DPIs through the API?
Can I get device specific DPIs through the API?
File | Line | Function |
---|---|---|
/global.php | 94 | errorHandler->error |
/showthread.php | 28 | require_once |
File | Line | Function |
---|---|---|
/global.php | 550 | errorHandler->error |
/showthread.php | 28 | require_once |
File | Line | Function |
---|---|---|
/global.php | 811 | errorHandler->error |
/showthread.php | 28 | require_once |
File | Line | Function |
---|---|---|
/global.php | 811 | errorHandler->error |
/showthread.php | 28 | require_once |
File | Line | Function |
---|---|---|
/global.php(872) : eval()'d code | 26 | errorHandler->error |
/global.php | 872 | eval |
/showthread.php | 28 | require_once |
File | Line | Function |
---|---|---|
/inc/functions.php | 1449 | errorHandler->error |
/inc/functions.php | 1414 | fetch_forum_permissions |
/inc/functions.php | 2953 | forum_permissions |
/showthread.php | 657 | build_forum_jump |
File | Line | Function |
---|---|---|
/inc/functions.php | 1997 | errorHandler->error |
/inc/functions_indicators.php | 41 | my_set_array_cookie |
/showthread.php | 665 | mark_thread_read |
File | Line | Function |
---|---|---|
/inc/functions.php | 7360 | errorHandler->error |
/inc/functions_user.php | 813 | is_member |
/inc/functions_post.php | 416 | purgespammer_show |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php(484) : eval()'d code | 6 | errorHandler->error |
/inc/functions_post.php | 484 | eval |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 672 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 757 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 762 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions.php | 7360 | errorHandler->error |
/inc/functions_user.php | 813 | is_member |
/inc/functions_post.php | 416 | purgespammer_show |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php(484) : eval()'d code | 6 | errorHandler->error |
/inc/functions_post.php | 484 | eval |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 672 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 757 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 762 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions.php | 7360 | errorHandler->error |
/inc/functions_user.php | 813 | is_member |
/inc/functions_post.php | 416 | purgespammer_show |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php(484) : eval()'d code | 6 | errorHandler->error |
/inc/functions_post.php | 484 | eval |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 672 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 757 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 762 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions.php | 7360 | errorHandler->error |
/inc/functions_user.php | 813 | is_member |
/inc/functions_post.php | 416 | purgespammer_show |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php(484) : eval()'d code | 6 | errorHandler->error |
/inc/functions_post.php | 484 | eval |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 672 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 757 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/inc/functions_post.php | 762 | errorHandler->error |
/showthread.php | 1114 | build_postbit |
File | Line | Function |
---|---|---|
/showthread.php(1587) : eval()'d code | 33 | errorHandler->error |
/showthread.php | 1587 | eval |
File | Line | Function |
---|---|---|
/showthread.php(1587) : eval()'d code | 41 | errorHandler->error |
/showthread.php | 1587 | eval |
File | Line | Function |
---|---|---|
/showthread.php(1587) : eval()'d code | 82 | errorHandler->error |
/showthread.php | 1587 | eval |
File | Line | Function |
---|---|---|
/showthread.php(1587) : eval()'d code | 92 | errorHandler->error |
/showthread.php | 1587 | eval |
File | Line | Function |
---|---|---|
/showthread.php(1587) : eval()'d code | 107 | errorHandler->error |
/showthread.php | 1587 | eval |
The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.30 (FreeBSD)
|
Screen DPI (ppi or Pixel Density)
|
23 Apr 2013, 0:16
Hi, this is a promising engine.
Can I get device specific DPIs through the API?
23 Apr 2013, 7:40
Hi!
Yes, you can obtain physical screen properties through the Murl::IPlatformConfiguration object, by using one of these methods: - GetPhysicalPixelSizeX() - GetPhysicalPixelSizeY() - GetPhysicalScreenSizeX() - GetPhysicalScreenSizeY() All of these methods return a size value in millimeters. From that you can easily calculate the actual screen DPI values in X and Y direction, for example in the app's Configure() method:
Bool App::MyApplication::Configure(IEngineConfiguration* engineConfig)
{
const IPlatformConfiguration* platformConfig = engineConfig->GetPlatformConfiguration();
Real dpiX = 1.0 / (platformConfig->GetPhysicalPixelSizeX() * Math::MM_TO_INCHES);
Real dpiY = 1.0 / (platformConfig->GetPhysicalPixelSizeY() * Math::MM_TO_INCHES);
// Do something spectacular using these values :)
return true;
}
This works well for iOS and Android devices. However on Windows and MacOS, the operating system unfortunately does not provide exact monitor information, so the DPI values reported to the engine are only some sort of "good guess". (For example, MacOS X always reports DPI values of 72, even for built-in screens of a MacBook) Best regards, dizzy
23 Apr 2013, 16:59
Thanks for the best answer!
The engine seems having almost that we want... I'll dig it!
24 Apr 2013, 6:08
Thanks for your interest!
Don't hesitate to ask if you have any further questions. |
« Next Oldest | Next Newest »
|