How to add a TBitmap32 image to TsAlphaImageList?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #58781
    Support
    Keymaster

    Hello

    You tried the 'Add' method already? Mask parameter may be empty there.

    Alpha channel of bitmap will not be lost.

    #58782
    SzakiLaci
    Participant
    'Support' wrote:

    Hello

    You tried the 'Add' method already? Mask parameter may be empty there.

    Alpha channel of bitmap will not be lost.

    No, I haven't tried it 😀 … because I knew this would happen if I try to compile:

    Code:
    [Error] Konstansok.pas(3670): Incompatible types: 'TBitmap' and 'TBitmap32'

    PS: Thanks for the quick responce.

    #58789
    Support
    Keymaster

    Yes, you should convert TBitmap32 to TBitmap with PixelFormat = pf32bit for using in this procedure.

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