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