Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread original size of an image
Mon, Sep 14 2020 6:47 AMPermanent Link

Martin Pflug

Hello,

i need to know the original size of an  image that i've load in TImage.Background. If the image is to large i want to stretch it, otherwise i leave sizeType at stNone.

My search is without an result

I found an old thread from 2014. But the properties "ImageWidth" and "ImageHeight"  that used in this thread aren't there anymore.


Thank you
Martin Pflug
Tue, Sep 15 2020 3:22 AMPermanent Link

Matthew Jones

Martin Pflug wrote:

> i need to know the original size of an  image that i've load in TImage.Background. If the image is to large i want to stretch it, otherwise i leave sizeType at stNone.

I think I recall using an option that does that automatically - restrains the size but doesn't grow it. Probably in EWB - worth an experiment. Otherwise sorry to mislead. 8-)

--

Matthew Jones
Tue, Sep 15 2020 4:27 AMPermanent Link

Martin Pflug

"Matthew Jones" wrote:

Martin Pflug wrote:

> i need to know the original size of an  image that i've load in TImage.Background. If the image is to large i want to stretch it, otherwise i leave sizeType at stNone.

I think I recall using an option that does that automatically - restrains the size but doesn't grow it. Probably in EWB - worth an experiment. Otherwise sorry to mislead. 8-)

--

Matthew Jones


Shame on me.
I'd like to remove my question Frown

Thank you
Image