Draw from AlphaImageList with reduced saturation?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34907
    ralfiii
    Participant

    I use images stored in a TsAlphaImageList to show application states.

    Now I need to slightly shade some of these images to show that they are currently not selected.

    (a wish by a designer, I can't argue about that).

    Unfortunately I can't prepare simply 2 sets of those icons, I need to generate the deactivated images at runtime.

    Is there a way to paint an image from a TsAlphaImageList with a reduced saturation?

    I tried using DrawAlphaImgListDC but this immediately makes the image monochrome.

    Attached there's a “normal” and a image with reduced saturation.

    Help!

    Thanks,

    Ralf

    #47234
    ralfiii
    Participant

    Found it 🙂

    (just 1 minute after posting)

    DrawAlphaImgListDC with BlendColor=clNone does the job.

    Thanks anyway 🙂

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