private void CreateDeviceIndependentResources() { this.d2dFactory = D2D1Factory.Create(D2D1FactoryType.SingleThreaded); this.dwriteFactory = DWriteFactory.Create(DWriteFactoryType.Shared); }
public static extern object D2D1CreateFactory(D2D1Factory.FactoryType factoryType, [MarshalAs(UnmanagedType.LPStruct)] Guid riid, D2D1Factory.FactoryOptions factoryOptions);