Available in the LEADTOOLS Imaging toolkit. |
PaintWhileLoad example for Visual J++
This example causes the LEAD control to paint the image as it loads.
LEAD1.setAutoRepaint( false );
LEAD1.setAutoSetRects( true );
LEAD1.setPaintSizeMode( (short) LTOCXU.PaintSizeModeConstants.PAINTSIZEMODE_FIT );
LEAD1.setPaintWhileLoad( true );
LEAD1.Load( "c:\\lead\\images\\image1.cmp", (short) 0, (short) 0, (short) 1 );