Hi list,
I've a StaticBitmap to display a thumbnail, my PB is if I fix Size
to 165x165 it enlarge smaller pictures to 165x165, and if I only
fix MaximumSize to 165x165 it enlarge itself to fit a larger
picture 
How can I avoid these behaviors?
JY
···
--
Q: What is the sound of one cat napping?
A: Mu.
Jean-Yves F. Barbier wrote:
I've a StaticBitmap to display a thumbnail, my PB is if I fix Size
to 165x165 it enlarge smaller pictures to 165x165, and if I only
fix MaximumSize to 165x165 it enlarge itself to fit a larger
picture 
How can I avoid these behaviors?
What do you want it to do, exactly?
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
I reduce regular pictures to be contained into 165x165 pixels,
and I'd like ie: a thumbnail of 100x165 or 165x120 to be correctly
displayed, not enlarged to 165x165.
But I also import some of them, and there are > 165x165.
···
On Tue, 13 Dec 2011 15:57:57 -0800 Tim Roberts <timr@probo.com> wrote:
Jean-Yves F. Barbier wrote:
> I've a StaticBitmap to display a thumbnail, my PB is if I fix Size
> to 165x165 it enlarge smaller pictures to 165x165, and if I only
> fix MaximumSize to 165x165 it enlarge itself to fit a larger
> picture 
>
> How can I avoid these behaviors?
What do you want it to do, exactly?
--
Only way to open lips of pigeon: sledgehammer.
Jean-Yves F. Barbier wrote:
···
On Tue, 13 Dec 2011 15:57:57 -0800 > Tim Roberts <timr@probo.com> wrote:
What do you want it to do, exactly?
I reduce regular pictures to be contained into 165x165 pixels,
and I'd like ie: a thumbnail of 100x165 or 165x120 to be correctly
displayed, not enlarged to 165x165.
But I also import some of them, and there are > 165x165.
That still doesn't tell us what you want. You have to be very precise
in order to get the machine to do what you want. So, if an image is
165 or less in both dimensions, then display it as is, otherwise shrink
it to 165 in the largest dimension, keeping the aspect ratio the same?
I believe you will have to do the image resizing yourself, and do not
allow the static bitmap to resize. That shouldn't be a lot of code.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
That still doesn't tell us what you want. You have to be very precise
in order to get the machine to do what you want. So, if an image is
165 or less in both dimensions, then display it as is, otherwise shrink
it to 165 in the largest dimension, keeping the aspect ratio the same?
Yep
I believe you will have to do the image resizing yourself, and do not
allow the static bitmap to resize. That shouldn't be a lot of code.
Thanks Tim, after testing my conclusion is: fixing max size
keep aspect ratio the same for smaller pictures at the condition
picture doesn't go further 165 pixels in any direction; so, I'll
resize ≤ 165 H/W at importation - I should have seen that resizing
when importating was the solution instead of making noise:(
···
On Tue, 13 Dec 2011 17:24:09 -0800 Tim Roberts <timr@probo.com> wrote:
--
< ari> why did gimp fail to build on amd64?
< nickr> because you touch yourself at night
< ari> how did you know 
Jean-Yves F. Barbier wrote:
Thanks Tim, after testing my conclusion is: fixing max size
keep aspect ratio the same for smaller pictures at the condition
picture doesn't go further 165 pixels in any direction; so, I'll
resize ≤ 165 H/W at importation - I should have seen that resizing
when importating was the solution instead of making noise:(
Oh, you shouldn't feel bad. It's often the case that the mere act of
having someone else restate a problem makes the solution clear.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Yep, the view's the same it's just the angle that change;-)
···
On Wed, 14 Dec 2011 09:41:47 -0800 Tim Roberts <timr@probo.com> wrote:
Oh, you shouldn't feel bad. It's often the case that the mere act of
having someone else restate a problem makes the solution clear.
--
If I had any humility I would be perfect.-- Ted Turner