How to play a gif/or picture without a background.

i have a .gif image sequence where each image in the sequence has a see through background. However when i draw this gif in project a white background is automatically placed behind the image. How can i get rid of this?

Hi @hakibags

Make sure that you call

 ofEnableAlphaBlending() ;   

before drawing anything with an alpha channel ( with transparency ) by default it is turned off. You can place it once in your setup() function to make things easy.

The ImageLoaderExample has more detail and full project files that might also be helpful to you.

Thanks alot, i’ve seen this in many examples but didnt know what it was. Thanks!