Questions tagged [aspect-fit]
23 questions
0
votes
1 answer
Why does Android treat downloaded images differently than embedded images
I have 3 images. They are all round (actually square with a transparant background) and are all 3 of the exact same size.
I would exepect the following xaml to produce 3 similar looking images, all streched to the max of the container keeping their…

Sjors Miltenburg
- 2,540
- 4
- 33
- 60
0
votes
1 answer
Xamarin forms - Dynamically-bound image in CarouselView lost Aspect.Fit after image change on Android
I am working on a cross-platform project using Xamarin forms. I am using carouselview to display an image button. See the code snippets below. The customImageButtonStyle sets to Aspect.Aspect.Fit. Initially it works as intended. However, after the…

Hong Wang
- 65
- 10
0
votes
1 answer
How to AspectFit Background image of UIView in swift?
when i set background image as pattern image then image is stretch so, i want to set as aspect-fit this pattern image so, how can do this?
let Image1 = UIImage(named: KeyboardBG_image)
UIGraphicsBeginImageContext(keyboardview.frame.size);
…

ikbal
- 1,114
- 1
- 11
- 30
0
votes
2 answers
How to get actual height of the image occupied in imageview for aspect fit
I would like to change the height of imageview based on how much height the image occupies in imageview.
I am using content mode Aspect Fit
Any ideas on how to do that ?

Elstine P
- 340
- 4
- 22
0
votes
0 answers
How to fix UIImageView Aspect Fit after download
I'm setting the image view to aspect-fit and resizing it after the image is downloaded, to remove the extra padding on top and bottom. What I have works fine unless the first image doesn't fill the whole screen, it will crop the second image…

Keith
- 1,969
- 4
- 17
- 27
0
votes
0 answers
Aspect Fit Background Color Spilling Over
I need the image to always aspect Fit - as I need to to retain it's shape within any given frame, however, when I stick a background color on the image it spills over, no matter what I seem to do. Any help?
-(void)layoutSubviews
{
[super…

HannahCarney
- 3,441
- 2
- 26
- 32
0
votes
1 answer
How to make border image to be fitted as per aspectfit uiimageview size?
In my application i have 2 uiimageview.one imageview contains the image that user selects either from photo library or take picture from camera.contentmode of this imageview is aspectfit so that image is not stretched if it is of lesser size.There…

iosdev1111
- 1,048
- 1
- 13
- 32
-1
votes
1 answer
Height of whitespace above and below UIImage in UIImageView
Given a UIImageView using AspectFit how can I calculate the height of any whitespace above and below the UIImage?

Schuey999
- 4,706
- 7
- 21
- 36