Is Win2D an open source project? RRS feed

  • Question

  • I am just trying to understand Win2D.

    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

    line 468 to line make a local copy of stream

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

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

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

    It works fine. 

    Is this open source project? 
    We don't have the source code for the ComPtr<ID2D1DeviceContext5> deviceContext5;
    COM interface, where it is paursing the Sample SVG file!. 
    Why it is so?

    Agha Khan

    Wednesday, August 9, 2017 12:41 AM

All replies

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

    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.

    Wednesday, August 9, 2017 5:58 AM
  • Thanks

    Agha Khan

    Thursday, August 10, 2017 2:45 PM