473,320 Members | 1,825 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

finding the boundary of an irregular shape

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.)
Dec 9 '06 #1
0 930

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ppyrstr | last post by:
I have been trying to figure out how to have a custom control that is irregular (non-rectangular) not interfere with other elements on the screen that may interfere with it's "regular" shape (the...
2
by: szabi | last post by:
Hi! I have seen in a couple of libraries that object are never passed through dll boundary, instead the results are returned through an output parameter reference like: void f(std::string &s)...
5
by: sunil borwankar | last post by:
I am trying hard to make Custom Command Buttons of Irregular Shape and of Different colours in Active X Interface Wizard but am not successful. Irregular Shape Buttons i.e.; Triangular, Arrow Shape...
0
by: boopsboops | last post by:
Hello thescripts readers, 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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.