Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double precision drawing in Cocoa



Is there any way to get double precision drawing in appkit/
foundation? I ask because I am making a view that needs to be able to
handle *huge* sizes at pixel resolution (a hex editor), and 24 bits
of precision just doesn't cut it (I get artifacts after I scroll down
aways, and they get worse the further I go). Is there some double
version of the geometry structures (NSPoint, NSRect, etc)? Or do I
have to use Quartz / ATSUI?


I have had problems on the other end by drawing to a view with the frame set to very small dimensions. The problems start to occur when I get frame coordinates such that there are less than 0.0025 drawing units per pixel. In this range the scrolling starts to develop artifacts just as you described. When it gets much smaller (around 0.00001 drawing units per pixel) the scrolling can stop working altogether and window updates might do nothing.


---------------
John Nairn (1-541-737-4265, FAX:1-541-737-3385)
Professor and Richardson Chair
Web Page: http://woodscience.oregonstate.edu/faculty/nairn(under construction)
FEA/MPM Web Page: http://oregonstate.edu/~nairnj


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.