Win2D2D 圖像渲染
Win2D 是一個易用的 Windows Runtime API,它能通過 GPU 加速,即時建立 2D 圖像的渲染模型。C# 和 C++ 開發(fā)者可以用它開發(fā) Windows 8.1 、Windows Phone 8.1 和 Windows 10 的應用程序。Win2D 利用 Direct2D,可以無縫地與 XAML 和 CoreWindow 集成。
示例代碼:
void canvasControl_Draw(CanvasControl sender, CanvasDrawEventArgs args)
{
args.DrawingSession.DrawEllipse(155, 115, 80, 30, Colors.Black, 3);
args.DrawingSession.DrawText("Hello, world!", 100, 100, Colors.Yellow);
}評論
圖片
表情
