gdiplus: Use integer math to apply color matrices.