Recent

Author Topic: Resizing picture  (Read 292 times)

Jake012345

  • Full Member
  • ***
  • Posts: 243
  • 'The knowledge is the key.'
    • FPCProjectShare
Resizing picture
« on: May 27, 2020, 06:33:25 am »
Hello!

I have a TImage on my form I'm loaded the picture from file and I want to resize it.

How can I do it?
Check my ProjectShare site and share your content: FPCShare

BeanzMaster

  • Full Member
  • ***
  • Posts: 218
Re: Resizing picture
« Reply #1 on: May 27, 2020, 07:41:45 am »
Hi

TImage have "Stretch" and "proportionnal" properties for that  :D

Jake012345

  • Full Member
  • ***
  • Posts: 243
  • 'The knowledge is the key.'
    • FPCProjectShare
Re: Resizing picture
« Reply #2 on: May 27, 2020, 10:39:24 am »
yeah..

But I don't know what is the

Quote
"proportionnal"
Check my ProjectShare site and share your content: FPCShare

PascalDragon

  • Hero Member
  • *****
  • Posts: 1695
  • Compiler Developer
Re: Resizing picture
« Reply #3 on: May 27, 2020, 11:00:34 am »
With Stretch the image will occupy the whole available space, with Proportional the aspect ratio of the image will be kept (though I don't know right know whether enabling Proportional alone is enough or whether you need to enable Strech as well  :-[ )

Jake012345

  • Full Member
  • ***
  • Posts: 243
  • 'The knowledge is the key.'
    • FPCProjectShare
Re: Resizing picture
« Reply #4 on: May 27, 2020, 11:32:45 am »
thanks!
Check my ProjectShare site and share your content: FPCShare

 

TinyPortal © 2005-2018