Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
- Subject: Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
- From: Jens Alfke <email@hidden>
- Date: Thu, 10 Sep 2009 11:41:14 -0700
On Sep 10, 2009, at 7:01 AM, Martin Redington wrote:
This works fine when the new y value is a whole integer, but I'm
seeing some strange behaviour when trying to scroll by fractional
amount (e.g. .25 or .5 of a pixel).
Are you sure you want to scroll by fractional pixels? It will be
slower, because the view has to re-render from scratch, instead of
letting the video card scroll the pixels. And a lot of things don't
render very well at non-integer coordinates unless they've been tuned
to do so (the most common problems are that lines that are supposed to
be one pixel wide get smeared across two pixels, and images get
blurred because every image pixel gets interpolated between four
screen pixels.)
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden