Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:20:37+00:00 2026-06-05T01:20:37+00:00

To render drawing object on to screen how to calculate ratio for the screen

  • 0

To render drawing object on to screen how to calculate ratio for the screen I don’t know and also specify ratio calculation is different for mobile and pc.

I want to ask this question because I have problem with the world timestep.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:20:39+00:00Added an answer on June 5, 2026 at 1:20 am

    The aspect ratio of a window, screen, image or other rectangular object is simply its width divided by its height.

    So, for example, on a full-HD screen (1920 pixels wide by 1080 pixels high), the aspect ratio is:

    ratio = width / height = 1920 / 1080 = 1.7778
    

    Notice that 1920/1080 == 16/9: this is why this is often called a 16:9 aspect ratio. If you think of the colon as a division, you’ll get the same aspect ratio as if you measured the screen itself.

    Also of interest: if you know the aspect ratio (e.g. 16:9 or 1.7778) and know the height of the screen (e.g. 1080 pixels), you can get the width of the screen by multiplying:

    width = height * ratio = 1080 * 1.7778 = 1920 // round result to nearest integer
    // Or, if you remember that 16:9 means 16/9, then:
    width = height * ratio = 1080 * (16 / 9) = 1920
    

    Similarly, you can get the height of the screen from the aspect ratio and width by dividing:

    height = width / ratio = 1920 / 1.7778 = 1080 // Again, rounding to integer
    // Or...
    height = width / ratio = 1920 / (16 / 9) = 1080
    

    The only really tricky thing is how some mobile devices handle aspect ratio can be a bit confusing. For example, when you rotate a phone onto it’s side its natural to think that the long edge has become the width of the screen and the short edge is it’s height – however, IIRC, most phone operating systems actually keep the width and height the same and leave it up to you to handle the fact that the screen is basically just tipped on its side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do CSS colors render differently on different monitors? Most importantly, will tools like Digital
In my view to render my template I receive different parameters through my request.
I'm trying to render to a texture, then draw that texture to the screen
I want to bind moving an object to a button press. When I press
I want to draw edges of an object with hidden edges removed. The idea
I want to capture an image of the screen, however there are some wpf
--------- Question 1 ---------- Maybe I don't understand the frame object completely (or maybe
I'm trying to implement a function that takes a System.Drawing.Bitmap object and renders it
I want to create a menu and level select screen for my Android game
I'm using webview.capturePicture() to create a Picture object that contains all the drawing objects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.