问题
I have a 32 pixel toolbar:
Is there a known standard for using different pixel heights for the toolbar based on different DPI configurations? If so, can you please point in in the right direction of this resource?
The only thing I have located about this concept is here and I quote the example pseudo code:
UINT smallToolbarID;
if ( DPI == smaller )
{
smallToolbarID = 16x16;
largeToolbarID = 32x32
}
else if ( DPI == medium )
{
smallToolbarID = 20x20;
largeToolbarID = 40x40
}
else if ( DPI == larger)
{
smallToolbarID = 24x24;
largeToolbarID = 48x48
}
In the above link the comment states:
Now if I have to do this "by the book" I would need to generate toolbars with buttons 16x16, 20x20, 24x24, 32x32, 40x40 and 48x48.
I would appreciate guidance for statement.
来源:https://stackoverflow.com/questions/59604082/is-there-a-standard-for-toolbar-icon-dimensions-based-on-dpi