SaveInterlaced example for Visual J++

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.
LEAD1.setSaveInterlaced( true );
LEAD1.Save( "c:\\temp\\tmp.gif", (short) LTOCXU.FileConstants.FILE_GIF, (short) 8, (short) 1, 
            (short) LTOCXU.SaveModifyConstants.SAVE_OVERWRITE );

// Clear the bitmap so that we can see the paint-while-load effect.
LEAD1.setBitmap( 0 );

// Paint the image while loading, showing that it is interlaced.
LEAD1.setPaintWhileLoad( true );
LEAD1.Load( "c:\\temp\\tmp.gif", (short) 0, (short) 0, (short) 1 );