• 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: Shawn Erickson <email@hidden>
  • Date: Fri, 6 May 2005 16:21:16 -0700


On May 6, 2005, at 3:33 PM, Jean-Francois Roy wrote:


Technically speaking, Quartz (and therefore the entire Cocoa view system) does not deal with pixels but rather with points in some graphical context which defines, among other things, a certain color space and transformation matrix (the CTM). In that regard, Quartz is very different from QuickDraw or GDI (on Windows).


The correct way to draw "pixels" is to create a Quartz CGImage or a Cocoa NSBitmapImageRep object (can be wrapped in an NSImage object), which both represent a classic pixel storage memory buffer.

Another option, not knowing exactly what Dustin is attempting to do or how many "pixels" he wants, is to fill rectangles that are 1 point wide and 1 point height consider using NSRectFill, NSRectFillList, and friends.


-Shawn
_______________________________________________
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


  • Follow-Ups:
    • Re: Function to write to one pixel?
      • From: Dustin Robert Kick <email@hidden>
References: 
 >Re: Function to write to one pixel? (From: Dustin Robert Kick <email@hidden>)
 >Re: Function to write to one pixel? (From: Jean-Francois Roy <email@hidden>)

  • Prev by Date: NSConnection Name-space and Fast User Switching
  • Next by Date: Re: Releasing an NSWindow without destroying the underlying Carbon windowRef?
  • Previous by thread: Re: Function to write to one pixel?
  • Next by thread: Re: Function to write to one pixel?
  • Index(es):
    • Date
    • Thread