Set transparency

Refer to the following example code to see how to set picture's transparency.