Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I want to use pictures to display some complex graphics
Such as:
C#
DrawingContext dc = this.RenderOpen();
dc.DrawImage(...);
dc.Close();

but when “OnHitTest” triggered
the rectangular region of the picture leads to error judgment
so I want to remove the transparent part of the picture or
convert the opaque part of the picture to a WPF Obejct
I have seen the methods in DrawingContext
maybe dc.DrawDrawing() could be use
thanks to any answers.
Posted
Updated 10-Jul-12 16:36pm
v2

1 solution

I solved it by judge the focused Pixels
if it is transplant filter out
forgive my poor English...
 
Share this answer
 
v2

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