Re: Double precision drawing in Cocoa
Re: Double precision drawing in Cocoa
- Subject: Re: Double precision drawing in Cocoa
- From: John Nairn <email@hidden>
- Date: Wed, 12 Apr 2006 17:01:17 -0700
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:
This email sent to email@hidden