• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Function to write to one pixel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Function to write to one pixel (From: Steve Israelson <email@hidden>)

  • Prev by Date: Re: Running AppleScript without Window Server context
  • Next by Date: NSTextView drawing background
  • Previous by thread: Re: Function to write to one pixel
  • Next by thread: Interface builder question.
  • Index(es):
    • Date
    • Thread