-
Jul 4th, 2022, 07:15 AM
#1
VB6 QUESTION: icon to bitmap
Just asking for some help to point in me in the correct direction.
I want to extract icons from DLLS or EXEs, I think I can already do that using privateExtractIcons or ExtractIcons APIs.
I believe I just need to use the handle from the above APIs to place the resulting image into a bitmap. The aim then being to load that bitmap into a collection using the scripting.Dictionary object so I can extract that image as I require.
Background is that retaining any transparency is important and note I'm not writing it into a stdPicture object but instead writing it to the screen using GDI+. I have all that covered but the conversion from icon handle to bitmap I am deficient.
As long as I can load the bitmap into the dictionary I should be good...
I haven't written any code yet but I am not being lazy - I just want the benefit of your knowledge to prevent me going down the wrong path (I am doing some research but limited time available here).
Can anyone give me a pointer as to a good method to convert a handle to an icon to a bitmap using GDI+ or similar retaining any alpha blending, I'd really appreciate the leg up.
https://github.com/yereverluvinunclebert
Skillset: VMS,DOS,Windows Sysadmin from 1985, fault-tolerance, VaxCluster, Alpha,Sparc. DCL,QB,VBDOS- VB6,.NET, PHP,NODE.JS, Graphic Design, Project Manager, CMS, Quad Electronics. classic cars & m'bikes. Artist in water & oils. Historian.
By the power invested in me, all the threads I start are battle free zones - no arguing about the benefits of VB6 over .NET here please. Happiness must reign.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|