• 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.

Messages - leledumbo

1
Help & Questions / Re: Indexed PNG & Transparency
13 February 2008, 07:22:04
Hey, I just noticed that LCLImager demo can do it well. It assigns the graphic property to TImage, and the indexed image is displayed correctly. Hmm... I wonder how.
2
Help & Questions / Re: Indexed PNG & Transparency
28 January 2008, 07:34:00
Hey, I've tried your suggestion about TBitmap (create it when the form is created, free when the form is destroyed). I don't see any flickering, and the fps shown is near expectation (50). The only problem now is about the indexed PNG, using the same method (convert it to TBitmap first) nothing appears on the form. I don't use DisplayImage anymore, instead I use Canvas.Draw.
3
Help & Questions / Re: Indexed PNG & Transparency
25 January 2008, 09:38:22
So, what is the best solution for this 60 fps graphics? Is there any better function/method?
4
Help & Questions / Re: Indexed PNG & Transparency
24 January 2008, 08:02:29
But it's stated in the docs that converting it to TBitmap first will make the code slower, while I need it to change frequently (via Timer, with interval 1000 div 60, I expect 60 fps). Is there any other approach? Btw, can TImagingCanvas help? It's not interchangable with TCanvas, so I can't assign it to Form's Canvas property. What's this designed for?
5
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