Win2D是一个开源项目吗? [英] Is Win2D an open source project?

查看:128
本文介绍了Win2D是一个开源项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想了解Win2D。

I am just trying to understand Win2D.

我在examplegallery示例中选择了SVG并选择了提供的SVG文件。我正在阅读代码以便更好地理解。我点击第456行  svgexample.xaml.cs  第290行,
在第456行调用Lib 
CanvasSvgDocument.cpp

I selected SVG in examplegallery example and selected provided SVG file. I was going through the code for better understanding. I hit at line 456 of svgexample.xaml.cs Line 290, which calls in Lib CanvasSvgDocument.cpp at line 456

第468行以生成流的本地副本

line 468 to line make a local copy of stream

第474行CanvasSvgDocument :: CreateNew with stream

它调用静态函数

CanvasSvgDocument :: CreateNew(ICanvasResourceCreator * resourceCreator,IStream * stream)

Line 474 CanvasSvgDocument::CreateNew with stream
it calls static function
CanvasSvgDocument::CreateNew(ICanvasResourceCreator* resourceCreator, IStream* stream)

It调用内部设备来创建CreateSvgDocument。

它调用HRESULT hr = lease-> QueryInterface(IID_PPV_ARGS(& deviceContext5));

It call internal device to create CreateSvgDocument.
It calls the HRESULT hr = lease->QueryInterface(IID_PPV_ARGS(&deviceContext5));

最终它到达第1505行 

并创建文件。 



工作正常。 

Eventually it gets to line 1505 
and it create the document. 

It works fine. 

Agha Khan

Agha Khan

推荐答案

Win2D本身在MIT许可下获得许可
GitHub
,这意味着它是开源的。

Win2D itself is licensed under MIT license on GitHub, which means it's open source.

Win2D使用Direct2D和Windows Imaging组件API是Windows的一部分。 Microsoft :: WRL :: ComPtr智能指针是Windows SDK中Windows运行时库的一部分,因此它受Windows SDK许可证的约束。

Win2D uses Direct2D and Windows Imaging Component APIs which are part of Windows. The Microsoft::WRL::ComPtr smart pointer is part of the Windows Runtime Library in the Windows SDK, so it's subject to the Windows SDK license.


这篇关于Win2D是一个开源项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆