Hello thescripts readers,
(Sorry for cross-posting, folks. Today I see that I can post to the VB.Net forum after all. Has the site changed or am I getting a bit dotty?)
I have a bitmap consisting of an irregular figure on a transparent background. I'd like to convert the figure's boundary into a graphics path. Can anyone suggest an efficient way to do this? The aim is to use the path for (among other things) drawing an outline round the image with a GDI+ pen.
I guess there must be a method which examines every pixel in the image for how many transparent neighbours it has, though I am hazy about details. How many neighbours should count? In the simplest case the figure could be fully opaque but I hope to find a solution where the image is partly transparent and I can tinker with the cutoff level (e.g. alpha<20%= background).
I presume there must be some way to do it using a matrix and I could use some guidance on how to code that. I'll be grateful if anyone can suggest or point me to a VB.Net solution.
thanks in advance, Vic (aka boops_boops aka a bogue: look it up.)