Available in the LEADTOOLS Imaging toolkit. |
SaveInterlaced example for C++ 4.0 and later
This example saves the current image as an interlaced GIF file, then loads the saved image with a paint-while-load effect that shows the interlaced behavior.
//Save the current image as an interlaced GIF file.
m_Lead1.SetSaveInterlaced(TRUE);
m_Lead1.Save("d:\\temp\\tmp.gif", FILE_GIF, 8, 1, SAVE_OVERWRITE);
//Clear the bitmap so that we can see the paint-while-load effect.
m_Lead1.SetBitmap(0);
//Paint the image while loading, showing that it is interlaced.
m_Lead1.SetPaintWhileLoad(TRUE);
m_Lead1.Load("d:\\temp\\tmp.gif", 0, 0, 1);