An image decoding method performed by a decoding device according to the present document comprises the steps of: acquiring a block-based delta pulse code modulation (BDPCM) flag for a current block; on the basis of the BDPCM flag indicating that BDPCM is applied to the current block, acquiring a BDPCM direction flag for the current block; and storing, as an intra-prediction mode of the current block, an intra-prediction mode of a prediction direction derived on the basis of the BDPCM direction flag.