The mechanism involves the iodine atoms in the contrast media absorbing X-rays more effectively than the surrounding tissues. This differential absorption creates a distinct contrast between the area of interest and the surrounding tissue, allowing for clearer imaging. The pharmacokinetics of these agents typically involve rapid distribution into the extracellular fluid compartment after intravenous administration, followed by renal excretion.