다음 코드는 Windows 양식에서 작동합니다. Silverlight에서 어떻게이 작업을 수행 할 수 있습니까? 그래픽 개체가없는 것 같습니다.Windows 양식의 그래픽을 Silverlight로 변환 하시겠습니까?
이
Bitmap bm = new Bitmap(600, 600);
Graphics g = Graphics.FromImage(bm);
Brush b = new LinearGradientBrush(
new Point(1, 1), new Point(600, 600),
Color.White, Color.Red);
Point[] points = new Point[]
{new Point(10, 10),
new Point(77, 500),
new Point(590, 100),
new Point(250, 590),
new Point(300, 410)};
g.FillPolygon(b, points);
bm.Save("testandoImagem.jpg", ImageFormat.Jpeg);