How to resize a picture?

后端 未结 6 1677
鱼传尺愫
鱼传尺愫 2020-12-30 04:30

I have image (500x500) but I need to resize it to 200x200 and paint it on TImage. How to achieve such result?

Note
I know about Stretch

6条回答
  •  庸人自扰
    2020-12-30 04:57

    I propose JanFX library (now incorporated into the fat Jedi distribution but FORTUNATELY you can extract this file from Jedi). In JanFX see the Stretch (I think) function. It gives a very nice smoothing (not as good as Graphics32 but good enough) but much much faster. The JanFX.pas in Jedi is bugged: does not work when {$R} is ON. You need to define {$R-}. That's it. The guys at Jedi entered this bug :)

提交回复
热议问题