The direct2d geometry constructor: converts the gdi+ style drawing primitive into a ID2D1Geometry object so that it can be rasterized by the gpu device.