all groups > dotnet drawing api > june 2004 >
You're in the

dotnet drawing api

group:

Create region from image



Create region from image Marc Selis
6/25/2004 10:43:00 AM
dotnet drawing api: Is there a simple way to create a region from an image that has a
transparent background?

The only way I have come up with is looping through all pixels and adding
those that are not transparent.
Does anybody have a better solution?

Thanks,
Marc Selis

Re: Create region from image Bob Powell [MVP]
6/25/2004 7:07:53 PM
The iterative manner is about the only one there is.

The GDI+ FAQ has an article that is related to this problem.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Image transition effects, snap-to-grid and Layered Windows are
all discussed in May's edition of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml






[quoted text, click to view]

AddThis Social Bookmark Button