• 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: Subviews becoming blurry or "chopped up"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subviews becoming blurry or "chopped up"


  • Subject: Re: Subviews becoming blurry or "chopped up"
  • From: "John C. Randolph" <email@hidden>
  • Date: Thu, 11 May 2006 04:55:30 -0700


On May 11, 2006, at 4:38 AM, Ricky Sharp wrote:


On Thursday, May 11, 2006, at 06:16AM, Rosyna <email@hidden> wrote:


Ah, so then it is indeed a bug in AppKit wrt fractional parts. Of
course, NSIntegralRect() cannot be used going into the future as it
breaks when using a Resolution Independent UI.

I don't think that's the case. When drawing the final content to the screen, you want things to always fall on pixel boundaries. My app makes use of NSIntegralRect, floor, ceil, etc. when drawing images, bezier paths and text. Content is scaled correctly, although at a few scaling factors, there can be artifacts around edges. I have a bug filed on this.

Down the road, you'll want to check the scaling factor to find the pixel boundaries, instead of counting on integral coordinates to land in the right places.


-jcr


"The problem with trying to child-proof the world, is that it makes people neglect the far more important task of world-proofing the child." -- Hugh Daniel


_______________________________________________
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: 
 >Subviews becoming blurry or "chopped up" (From: Rosyna <email@hidden>)
 >Re: Subviews becoming blurry or "chopped up" (From: "John C. Randolph" <email@hidden>)
 >Re: Subviews becoming blurry or "chopped up" (From: Rosyna <email@hidden>)
 >Re: Subviews becoming blurry or "chopped up" (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Subviews becoming blurry or "chopped up"
  • Next by Date: Re: Programmatically resizing an NSWindow based on window contents
  • Previous by thread: Re: Subviews becoming blurry or "chopped up"
  • Next by thread: Re: Subviews becoming blurry or "chopped up"
  • Index(es):
    • Date
    • Thread