Never mind, Matti :-)
At least I know now my brainwork wasn't a waste of time...
Regards
Rolf
Am 17.03.2012 17:44, schrieb Matti:
> Hi Rolf,
>
> sorry - what I remembered was how I worked with thumbnails. But they have a
> fixed size, and so I could use a square PictureBox of the same size.
>
>
Hi Rolf,
sorry - what I remembered was how I worked with thumbnails. But they have a
fixed size, and so I could use a square PictureBox of the same size.
When I have larger images and/or don't know the dimensions, I use 'stretched'
PictureBoxes and calculate their widht/height, just like you di
Hi Matti,
You are right, but only if the photo is as large as the PictureBox or
smaller. If it's larger, the photo's center will be shown, but at its
original size, i. e. you will see part of the photo only.
After some fiddling, my father and I found a formular based on the size
of the Picture
Hi Rolf,
Square PictureBox is correct.
Stretched has to be set to false.
Then just set Alignment to Center (in code: 3).
That's all.
Matti
Am 15.03.2012 10:14, schrieb Rolf-Werner Eilert:
> Hi folks, this is in Gambas2:
>
> On a form, I have a PictureBox which shall show photos in landscape and
Hi folks, this is in Gambas2:
On a form, I have a PictureBox which shall show photos in landscape and
portrait. So I drew a square PictureBox.
I expected that if the photo has not the same aspect ratio, it will be
shown with bars of the background color, but when I say Stretched =
True, the pi