Top "Aspect-ratio" questions

The aspect ratio of an element describes the proportional relationship between its width and its height.

Aspect ratio in UIImageView

I got app which can add photo from camera or gallery. After adding each photo showes in UIImageView. But they …

objective-c ios uiimageview uiimage aspect-ratio
Set width according to height

I saw solution for height depending on width: css height same as width. Or here: https://stackoverflow.com/a/6615994/2256981. But …

css aspect-ratio
Android VideoView crop_center

I have a RelativeLayout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" …

android android-videoview aspect-ratio
How to calculate Android screen aspect ratio mathematically

One of the device screen properties that Android lets an app query is it's aspect ratio. In the examples that …

android screen aspect-ratio
How to align ImageView to the bottom, fill its width and height, and keep its aspect ratio?

Background There are various XML attributes for ImageView to scale its content , and various layout views that allow to place …

android imageview aspect-ratio
Set UIImageView AspectRatio constraint programmatically in swift 3

I have an UIImageView in storyboard which AspectRatio is 1:1, that I want to change to 2:1 programmatically in ViewController in some …

ios swift3 constraints aspect-ratio
How do I find the natural size/dimensions of a Flash SWF file?

I've been given a Flash file (.swf extension) to put into a web page. Opening the file in my browser …

flash size aspect-ratio
OpenGL stretched shapes - aspect ratio

I got my openGL view at a size of (lets say..) 800(width)x600(height). Then i got a 2D object …

opengl 2d aspect-ratio
C# : How to calculate aspect ratio

I am relatively new to programming. I need to calculate the aspect ratio(16:9 or 4:3) from a given dimension say axb. …

c# asp.net aspect-ratio
Flexbox, responsive grid of square divs maintaining aspect ratio

I'm trying to create a 2x2 grid with divs. Some of the divs might contain an image, but it will …

css flexbox grid-layout aspect-ratio