Direct2d Sample Code