Locally enhancing dye affinity of a textile material by chemical means