How to convert the wpf polygon shape as bitmap image. am tryint to send as Visual parameter to change as bitmap, but it doesnt seems to be working. is there any other way to convert the WPF polygon to bitmap????
am using like below
RenderTargetBitmap RTbmap = new RenderTargetBitmap((int)yellowPolygon.Width, (int)yellowPolygon.Height, 96, 96, PixelFormats.Default);
RTbmap.Render(yellowPolygon);
image1.Source = RTbmap;