Listing 5 calls the setOpacity and drawPictureOnPicture methods
The image of the butterfly is centered on the background
Listing 5. Display the butterfly at 50-percent opacity. |
---|
butterfly = setOpacity(butterfly,50); drawPictureOnPicture( butterfly, display, backgroundWidth/2 - butterflyWidth/2, backgroundHeight/2 - butterflyHeight/2); display.show(); |
File: bt.htm | [Next] | [Prev] |