Try to look here:
* GifBlender2
* GifBlender

It's pity for you, but they are DirectX 8.x and do not use DelphiX, but you should get the idea how to do this.