• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: why every image has the same resolution?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why every image has the same resolution?


  • Subject: Re: why every image has the same resolution?
  • From: Shawn Erickson <email@hidden>
  • Date: Fri, 8 Oct 2004 07:27:44 -0700


On Oct 7, 2004, at 5:25 PM, 김경옥 wrote:

Hi,
 
I got resolutions of images from - (float) dpiX { return 72.0*[theRep pixelsWide]/[theRep size].width; }
Even though the resolution of an image is 150 dpi in windows system, my cocoa app gets 72 dpi for the image.
I mean the resolution of every image turns out only 72 dpi in my cocoa app.
is it correct in MacOS?
 
Does the resolution of image depend on the system?
I thought each image has its own resolution info.

Possibly you are probing an image representation that was cached in support of drawing your image on the screen since the default window/screen resolution on Mac OS X is currently 72 DPI (matches typographic standard resolution). In other words your image is being down scaled for display on the screen but the original image data is still at the original resolution.

However another common source is that the image itself isn't tagged correctly or at least not as you believe, so it is seen as having 72 DPI not 150 DPI as you believe.

Please outline what you are trying to do and currently doing (show some code) so we can better help you.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >why every image has the same resolution? (From: 김경옥 <email@hidden>)

  • Prev by Date: Re: NSMatrix help
  • Next by Date: Re: Equivelent to drawRect: for drawing after sub views are drawn
  • Previous by thread: why every image has the same resolution?
  • Next by thread: how do i launch a specific system preference?
  • Index(es):
    • Date
    • Thread