Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How get bitmap handle of a specific icon in a wpf window?

$
0
0

The executable icon I've been given contains many images (with transparent regions). How do I get a bitmap handle of a specific image (e.g. the largest) to pass to a dll? I'm currently using this:

System.Drawing.Icon.ExtractAssociatedIcon(File).ToBitmap.GetHbitmap



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>