This is a helper library by Kentaro.k-21 that you can use to read graphics from the graphics.dat files of Dungeon Master, Chaos Strikes Back and Dungeon Master II.
A sample program is supplied to show how to use the library. Here is a second test program: