• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - leledumbo

1
Help & Questions / Indexed PNG & Transparency
21 January 2008, 09:42:52
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.
SMF spam blocked by CleanTalk