Save example for Visual J++

This example saves the image as a PNG file, loads the new file, and redisplays the bitmap.

setCursor( Cursor.WAIT );  // Hourglass
LEAD1.Save( "c:\\lead\\images\\tmp.png", (short) LTOCXU.FileConstants.FILE_PNG, (short) 8, (short) 1,
            (short) LTOCXU.SaveModifyConstants.SAVE_OVERWRITE );
LEAD1.Load( "c:\\lead\\images\\tmp.png", (short) 0, (short) 0, (short) 1 );
LEAD1.ForceRepaint();
setCursor( Cursor.DEFAULT );  // default