Re: Double precision drawing in Cocoa
Re: Double precision drawing in Cocoa
- Subject: Re: Double precision drawing in Cocoa
- From: Scott Thompson <email@hidden>
- Date: Thu, 13 Apr 2006 07:38:40 -0500
On Apr 12, 2006, at 5:59 PM, Jonathan deWerd wrote:
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?
The only solution I can think of is to redraw the whole view at
once even if only a small portion of it needs redrawing (which
works, but not very well).
Has anyone else encountered this problem and come up with a
solution? I didn't find much on cocoabuilder (only someone trying
to make a 10,000 pixel view), but it is possible I am using the
wrong search terms. Any pointers?
Quartz2D uses floating point precision throughout. If you want
higher precision you are going to have to use a more sophisticated
drawing scheme than you currently employ.
More specifically you should probably look at separating your model
from your presentation and you will probably have to take a more
active roll in the scrolling process.
Scott
_______________________________________________
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