winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Enable `png` based `ico` files and streams to be loaded into `Bitmap`

Open elachlan opened this issue 1 year ago • 1 comments

In PR #11375 we discovered that when converting bmp based ico resources to be png based, there was a failure when loading the icons as the ToolboxBitmapAttribute tries to create the resource as a bitmap. This errors out as bitmap uses different PInvokes from Icon, with Icon PInvokes supporting png for a few windows versions.

This would enable us to convert the ico files to be png based, saving a few megabytes in an AOT compiled app (#11370).

elachlan avatar May 31 '24 22:05 elachlan

In all likelihood we won't be able to address this in 9, so moving it to 10

merriemcgaw avatar Jun 11 '24 22:06 merriemcgaw