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