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 8237017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:19:50+00:00 2026-06-07T19:19:50+00:00

I just wanted to know if my image has x*y dimensions. When retina display

  • 0

I just wanted to know if my image has x*y dimensions.

When retina display devices show that image created with a CGRectMake(0,0,x,y), would that be a pixelated image?

Should the correct size have been CGRectMake(0,0,x/2,y/2)?

How can I tell the rect size that an image should have?

Do I need to use the contentScaleFactor = [UIScreen mainScreen].scale;?

or maybe divide by it as in: CGRectMake(0,0,x/contentScaleFactor,y/contentScaleFactor)?

  • 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-07T19:19:52+00:00Added an answer on June 7, 2026 at 7:19 pm

    Dimensions are measured in points instead of pixels. Both retina and non-retina display devices have the same points. On a non-retina display device, one point equals one pixel, but on a retina display device, one point equals two pixels. So, you will use CGRectMake(0,0,x,y) for both.

    To avoid a pixelated image, make sure to provide a double-resolution image with the @2x suffix. For example, if your regular image was named foo.png, then the retina version should be named foo@2x.png.

    When coding, refer to foo.png at all times. When your app is running on a retina display device the double-resolution image (foo@2x.png) will be used automatically.

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

Sidebar

Related Questions

Just wanted to know how i would replace sitename.com with sitename2.com whenever a user
Just wanted to know if overriding UITabBarController would get my app rejected? Is it
I just wanted to know how to configure FCKEditor to upload files and images
Just wanted to know. Is it possible to highlight text in ElasticSearch on an
Just wanted to know something about signed vs unsigned interpretation. Am I right if
Just wanted to know if anyone is really using Objects and Collections in Oracle
Just wanted to know if there is a big chance to inject SQL While
Just wanted to know if is possible to use mod_rewrite on a single(or more
I just wanted to know if I need to place a check for null
I just wanted to know how to get the logged in apple id in

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.