<AWT Dev> <Swing Dev>  Review request for 8182043: Access to Windows Large Icons
alexey.ivanov at oracle.com
Fri Sep 29 14:34:04 UTC 2017
On 25/09/2017 21:44, Sergey Bylokhov wrote:
> On 9/22/17 04:22, Alexey Ivanov wrote:
>> There's no way of knowing in advance.
>> Explorer does not restrict the size of icons (now), it's up to
>> developers of a particular file handler to provide icons. Usually,
>> there's only one icon with size larger than 255.
>> If there's the icon of the requested size, Explorer will give it to
>> you, otherwise it will scale the closest available to the requested
>> Windows documentation suggests the following sizes:
> Ok, so it means that we will support 1-128 pixels
> natively(MAX_ICON_SIZE) and others via MRI.
Why 128 pixels? Windows shell usually provides icons up to 256 pixels,
for example there are 256×256 icons for folders and generic file type.
Since |IExtractIcon::Extract| gives you the requested size, performing
scaling if required, then MRI will never be created.
As for sizes, 16 seems to be the minimum icon size (Windows shell
overlay icons are 10×10). The reasonable maximum size seems to be 256.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev