Closed minus1ms closed 3 months ago
i forgot to mention, i use latest winit version, but it shouldnt be an issue
kurwa ale wasi
The image you attachted is RGB, not RGBA.
- let decoder = png::Decoder::new(png_bytes);
+ let mut decoder = png::Decoder::new(png_bytes);
+ decoder.set_transformations(png::Transformations::ALPHA);
Template
main.rs
file that demonstrates the issue:Issue
If i use attached image then it corrupts it and doesnt display it correctly, for square images it works always