How can I paint the whole form on a bitmap?

前端 未结 3 1973
小蘑菇
小蘑菇 2021-01-28 07:47

I want to paint the whole form including its caption bar and frame on a TBitmap object.

GetFormImage is cool, but it has two problems:

3条回答
  •  被撕碎了的回忆
    2021-01-28 08:13

    About capturing form image when hidden, use

    AlphaBlend := true;
    AlphaBlendValue := 0;
    

    while form is shown. The user will not see the form but GetFormImage() will capture its canvas. I think this can work with "OnTheFly" suggestion too.

提交回复
热议问题