Ok, example code:
sf::Image img ;
img.Create( 256 , 256 ) ;
for( int x = 0 ; x < 256 ; ++x )
for( int y = 0 ; y < 256 ; ++y )
img.SetPixel( x , y , sf::Color( x , y , 255 , (256+x-y)%256 ) ) ;
img.SaveToFile( "C:/test.png" ) ;
This code produces a 24bpp png file, and not a 32bpp one. I've been looking at the code, and I don't see a way to specify this.
I'm even wondering if stb_image supports writing the alpha channel at all...
Any ideas?
Thanks in advance!