Subject | Re: [IBO] Problems with strech (JPEGImage) |
---|---|
Author | Popa Ovidiu Razvan |
Post date | 2007-10-29T13:03:35Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
portrait container. The control in your example behaves exactly as
it should: it takes the width of the image and scales it to fit the
width of the control. It scales the height of the image accordingly,
centres the scaled image and paints the "empty" space white.
to bottom?
strech in my opinions means ignore aspect ratio.
maybe shoud be a diferent property like
strech (true, false)
and
ignore_aspect_ratio (true, false)
Razvan
tks anyway for helping
>with
> At 10:24 PM 26/10/2007, you wrote:
> >Hi
> >I am using TIB_JPEGImage for showing some picture.
> >My problem is.
> >I set
> >Stretch = True
> >Center = True
> >AutoSize = False (the real picture is smalleer)
> >
> >the picture dosent strecth like I need
> >she put the original picture in the center and the rest is filled
> >color White (Component Color).less clear than ever in understanding what you want.
> >any advice ?
>
> I've looked at your example and watched your arguments and now I am
>high.
> You have an IB_JPEGImage that is 298 pixels wide and 358 pixels
>aspect ratios, i.e. you are trying to display a landscape image in a
> You have a JPG image that is 900 pixels wide and 675 pixels high.
>
> Therefore, the control and the image have completely different
portrait container. The control in your example behaves exactly as
it should: it takes the width of the image and scales it to fit the
width of the control. It scales the height of the image accordingly,
centres the scaled image and paints the "empty" space white.
>aspect ratio and coercing the height to fill the container from top
> Did you expect that it would distort the image by breaking its
to bottom?
>EXACT (larger picture fit in, small picture enlarge)
> Helen
>
strech in my opinions means ignore aspect ratio.
maybe shoud be a diferent property like
strech (true, false)
and
ignore_aspect_ratio (true, false)
Razvan
tks anyway for helping