在 GDI+ Winforms 中,我会这样做:
怎样在WPF中使用DrawingContext做同样的事情?
Bitmap b = new Bitmap(32,32);
Graphics g = Graphics.FromImage(b);
//some graphics code...`
怎样在WPF中使用DrawingContext做同样的事情?