The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Developing Universal Windows apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

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