Take screenshot with alpha channel

I need to make screenshot with aplha channel. I try do it throught console command. But after package my project i get error and my programm stop working. Can i do screenshot with alpha channel another way?