for 24-bit DIBs, it's almost simple. unfortunately, in general, it's not simple. DIBs come in many different flavors and it's ncessary to translate the DIB to a common intermediary format (such as raw RGB) before you can give it to any of the public doman PNG, JPG, TIFF, etc. libraries. you might want to check out ImgSource : http://www.smalleranimals.com . this is a shameless plug, since i wrote it. but, at least i can claim to know what i'm talking about when i say it can handle DIB->RGB and RGB->TIFF,JPG,BMP,PNG,PCX,TGA,EMF, etc.. the source is available, so you can always figure out what it does and tailor it to suit your needs. -c