| |

VerySource

 Forgot password?
 Register
Search
View: 661|Reply: 0

How do I draw a HICON icon and how to use GDI + Graphics object?

[Copy link]

3

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-3 11:50:02
| Show all posts |Read mode
I got a HICON handle. I tried to use the Bitmap class constructor (HICON hIcon) to create a Bitmap object, and then used Graphics' DrawImage to draw the picture, but the icon became opaque (annoying!). Is there any way to do it in Graphics A transparent icon is drawn on the top. Thank you heroes, I ca n’t find a way.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list