AutoSize Example for Visual J++

This example shows how the AutoSize property works when loading and when rotating an image.

LEAD1.setAutoSize( true );
LEAD1.Load( "c:\\lead\\images\\image1.cmp", (short) 0, (short) 0, (short) 1 );
MessageBox.show( "Control is sized to fit the loaded bitmap" );
LEAD1.Rotate( 4500, ROTATE_RESIZE, new Color( 0, 0, 0 ) );
MessageBox.show( "Control is sized to fit the rotated bitmap" );