FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

Cached Image Aspect="Fill" Doesn't work

Open alicint opened this issue 9 years ago • 2 comments

I'm trying to make the image fill the width and height of the imageview, with non-uniform scaling off course, but it doesn't seem to work.

This is my code

    <forms:CachedImage  DownsampleToViewSize="True"  RelativeLayout.XConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1275}" 
                        RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.53}"
                        RelativeLayout.WidthConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
                        RelativeLayout.HeightConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.133}"
                        Source="panelbalance.png" Aspect="Fill" VerticalOptions="End" HorizontalOptions="CenterAndExpand" FadeAnimationEnabled="False"/>
    <forms:CachedImage  DownsampleToViewSize="True"  RelativeLayout.XConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.5725}"
                        RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.53}"
                        RelativeLayout.WidthConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
                        RelativeLayout.HeightConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.133}"
                        Source="panelprofile.png" Aspect="Fill" VerticalOptions="End" HorizontalOptions="CenterAndExpand" FadeAnimationEnabled="False"/>

And it produces this: crp

(the images have no whitespace around them)

alicint avatar Aug 10 '17 08:08 alicint

It may be related to this: https://github.com/luberda-molinet/FFImageLoading/issues/545 https://github.com/luberda-molinet/FFImageLoading/issues/480

daniel-luberda avatar Aug 14 '17 17:08 daniel-luberda

Let's continue in other threads.

daniel-luberda avatar Sep 02 '17 15:09 daniel-luberda