David Kahurani : gdiplus: Move Flatten() tests into the same function.