Click here to Skip to main content
15,443,549 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we get the graphics path of bitmap image with irregular shape using getpixel or setpixel method. By using MakeTransparent method it just hides some part and region remains same having that hidden part but I want to remove that hidden part from the region and have new graphicspath from that modified region.

Suppose I have created a bitmap image which is having actual background black or red and the actual object on it which is to be only shown ignoring the black or red background. If I try using the MakeTransparent method, ofcourse it hides the black or red background but the region of that bitmap is same including that background color. So how can I obtain the new region excluding that black or red background.
Updated 30-Sep-10 19:52pm

You'll have to implement your own edge detection algorithm to generate the points for the GraphicsPath. There is no built-in method that will "trace" the outline for you.
Share this answer
I have edited my question. Kindly check it if any solution to it can be brought.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900