Due to the development of quantum computers in recent years, the topic of quantum image processing (QIP) in data hiding has begun to draw increasing attention. Also, since more and more digital image are transmitted via the internet, data hiding becomes feasible. The aim of data hiding algorithms is to raise the hiding capacity and preserve the original image quality. However, both goals are contradictive to each other. This paper presents an irreversible approach of data hiding in the spatial domain. Different from the traditional LSB methods, the proposed technique firstly divides the image into groups of three consecutive pixels and disassembles the bit sequence with secret message. Then, based on the combinations of addition and multiplication for the dissembled sets, the odd-even relationship among those three pixels are calculated and used to adjust their pixel values and embed the secret message. Experimental results have shown that the hiding capacity can reach to 41.67% and the image quality can be preserved.