TsAlphaImageList misbehaves when used with bmp-files

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #36141
    ralfiii
    Participant

    Title says it all:

    I load bmp-files and png-files into a TsAlphaImageList.

    1st bug: The clear method seems not to delete the bmp files

    2nd bug: bmp-images are overwritten by subsequently added png files

    Demo-app attached

    Tested with most recent AC version (9.03beta)

    Ralf

    #51938
    Support
    Keymaster

    Hello Ralf

    Try to use the imgList.LoadFromFile method without creating of the TPNGGraphic

    This procedure made specially for these purposes.

    I see a problem with loading of Bmp by this procedure, this issue will be solved soon.

    #51939
    ralfiii
    Participant

    This makes the code for loading the png images a lot smaller, but I can't load a .bmp file this way.

    I get this error:


    Cannot load Unknown_small.bmp

    Invalid or unexpected image format.

    Help…

    #51941
    Support
    Keymaster

    This issue is solved, I have sent patched file to you by email.

    #51942
    ralfiii
    Participant

    Super, thanks.

    But: The clear method doesn't work yet.

    The loaded images stay in the imagelist when calling “Clear”.

    If you press the button in the demo more often you'll see…

    #51949
    ralfiii
    Participant

    I just received the we sources, now it works.

    Thanks a lot!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.