Re: Function to write to one pixel
Re: Function to write to one pixel
- Subject: Re: Function to write to one pixel
- From: Scott Thompson <email@hidden>
- Date: Fri, 6 May 2005 14:13:33 -0500
On May 6, 2005, at 11:18 AM, Steve Israelson wrote:
I think the concept in Cocoa is that there are NO pixels.
Its all vectors and can be zoomed in to any scale.
This is correct. The idea of a "pixel" is a device dependent
concept. It only applies to bitmaps, not to things like laser
printers or PDF files. Those objects don't have pixels (well...
OK... PostScript printers do have pixels, but there is really no way
to access them).
There must be some way to determine the smallest visible line width
or circle though?
No, there is not. Quartz, for example, can render lines and circles
that are 0.5 pixels wide (or smaller) and will use techniques like
antialiasing to provide the best representation of that drawing on
the destination device.
If you want pixel-level control over something... you should use your
own pixel buffer and submit it to Quartz using NSImage (and
NSBitmapImageRep) or CGImage.
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