Masking Icons

BlitzPlus Forums/BlitzPlus Programming/Masking Icons

kfprimm(Posted 2005) [#1]
How does one go about masking an .ico file?

There's probably an way to do it with API functions but i can't figure it out.


JoshK(Posted 2005) [#2]
If the icon is already masked:
LoadImageA(0,file$,IMAGE_BITMAP,0,0,LR_LOADFROMFILE)
else
LoadImageA(0,file$,IMAGE_BITMAP,0,0,LR_LOADFROMFILE+LR_LOADTRANSPARENT)