Use alphamask image

example program
AlphaCompositeTest.java.txt

Output examples from test program:
Original picture:

Masked and save as png