This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

TLMDFxImage Fading

I have a TLMDFxImage and want to do several things.

First I need to fade from black to an image. I first load the desired image as the second image in my TLMDFxImageList, then call the animation execute. I'm using stretch and proportional to get the maximum size and keep the aspect ratio. OK so far.

Second I need to fade from that image to another image that has different dimensions. Again I load the new image into the second position of the TLMDFxImageList and call the animation execute. After the fade I can see leftovers of the first image in the areas that the new image doesn't cover. How can I fix that?

Thirdly, I need to fade the image back to black. I've put a black image as the first image in the TLMDFxImageList, but again it doesn't cover the old image.

Comments

  • I've gotten around the leftover image problems by resizing all images to fit the image panel.

    Now the main issue is the huge delays when accessing the image list for the image panel.

    The first file loads fast, but subsequent ones take seconds to load.

    Are there components mean to be able to load the image list on the fly?
  • Its hard to say, why load takes so long, because TLMDFxImageList uses standard TPicture to store images. Can you create a small demo and send it to our support e-mail.
  • I think I found the issue. When changing image indexes, the animation is blocking execution.
  • But, still this should not take seconds. Or your images are very big?
  • The main issue is that as soon as I change the image index and the animation starts, the code is blocked until the animation completes. Could the component be improved to make the index change non-blocking?
  • No, we plan no complicated changes in this components.
  • That's a shame. I've now ditched this component in favour of another one that works the way I need.
Sign In or Register to comment.