is there an easy way to generate the mask from the image ?

let’s say I have an image, I want to use it as my app icon…
you must generate a mask to select the icon correctly.
is there a software that simply generate a mask from the image’s contour ?
I haven’t found one.

On the Mac, Icon Composer works very well, is simple to use, and is free. Con’t know about Win

you could just use CopyMask and then apply a Graphics.Transform on it to make it black & white. That’s usually enough for govt work.