TransparentColor example for Visual J++

This example sets white as a transparent color; then loads a test image and paints it.

LEAD1.setAutoRepaint( false );

// Enable transparency
LEAD1.setBitmapEnableTransparency( true );

// Make white the transparent color
LEAD1.setBitmapTransparentColor( new Color( 255, 255, 255 ) );
LEAD1.Load( "c:\\lead\\images\\ulay5.bmp", (short) 0, (short) 0, (short) 1 );
LEAD1.ForceRepaint();