<AWT Dev> RFR: 8182043 Access to Windows Large Icons

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Aug 28 23:12:27 UTC 2020

On 29.05.2020 14:35, Alexey Ivanov wrote:
> The ultimate goal of this API could be to provide an MRI which stores all the available icon sizes and loads dynamically the size that's most appropriate to the current display settings. Raymond Chen has a blog post about the format of the icon resources [1]. If we do that, we will handle all the scaling ourselves and will be able to define our own algorithm for choosing the closest match. As explained in LookupIconIdFromDirectoryEx [2], LoadIcon and LoadImage “use this function to search the specified resource data for the icon… that best fits the current display device.”> [1] https://devblogs.microsoft.com/oldnewthing/20120720-00/?p=7083
> [2] https://docs.microsoft.com/en-ie/windows/win32/api/winuser/nf-winuser-lookupiconidfromdirectoryex

Did any body check that the approach from the blog post works?

Best regards, Sergey.

More information about the awt-dev mailing list