Using time-domain integration (TDI) and a two-dimensional sensor is beneficial for X-ray imaging of moving objects. Applying on-chip instead off-chip TDI decreases the required data throughput between an ASIC and the backend several times [1]. This, in turn, allows us to significantly simplify the ASIC itself as well as the backend.We present the results of test measurements of an ASIC dedicated for X-ray material discrimination by using on-chip TDI and a CdTe sensor.The main part of the ASIC is an 192 × 64 pixel matrix. The pixel size is 100 μm × 100 μm, so the chip size is approximately 6.7 mm × 2 cm. The chip is manufactured in a 130 nm CMOS technology with 8 metal layers. A single pixel analog front-end consists of a charge-sensitive amplifier, a shaper, and three discriminators followed by counters. The test was conducted with a 0.75 mm thick CdTe sensor.First, we show the results of the discriminator offset correction followed by the evaluation of the pixel analog front-end gain and noise conducted with single energy radiation. Next, the results of moving objects imaging are obtained by using an industrial X-ray machine for food inspection (continuous energy spectrum). This is carried out to present an example of the image and evaluate the image signal to noise ratio for different energy discriminator thresholds, sensor bias voltages, detector module temperatures and object speeds.