I'm using Imaging 0.24.2 on Lazarus 0.9.25/FPC 2.2.0.
I try to load an indexed PNG image using TSingleImage, then display it using DisplayImage function. But the result is far from expected, I only see a box with some pixels in it but it's definitely not the correct image. When I convert it to RGBA, it loads fine. From the documentation, I see that Imaging supports loading of indexed PNG. So, could this be a bug?
Another thing, after converting to RGBA, DisplayImage displays the image with transparent pixel being white. From the documentation, DisplayImage only supports ifR8G8B8A8 and ifX8G8B8A8 format. Therefore, RGBA should be displayed correctly. Any solution to this?
Thanks.
I try to load an indexed PNG image using TSingleImage, then display it using DisplayImage function. But the result is far from expected, I only see a box with some pixels in it but it's definitely not the correct image. When I convert it to RGBA, it loads fine. From the documentation, I see that Imaging supports loading of indexed PNG. So, could this be a bug?
Another thing, after converting to RGBA, DisplayImage displays the image with transparent pixel being white. From the documentation, DisplayImage only supports ifR8G8B8A8 and ifX8G8B8A8 format. Therefore, RGBA should be displayed correctly. Any solution to this?
Thanks.