[PATCH v2 1/2] gdiplus: Use helper to calculate transform properties