• 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: Dustin Robert Kick <email@hidden>
  • Date: Fri, 6 May 2005 18:34:38 -0500

How can you create, for example, a pattern of crosshatched pixels, with nothing behind them in the other pixels (though this is probably a different topic), this was one thing I was thinking of doing with painting single pixels. ( Paint a pattern of crosshatches over another picture so that both would show up ). But in particular, I was trying to paint a single pixel in the middle of concentric circles, and couldn't find the function, which I found to be odd.


Dustin Kick

On May 6, 2005, at 6:21 PM, Shawn Erickson wrote:


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: Shawn Erickson <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>)
 >Re: Function to write to one pixel? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: registerDefaults Conflict with Bindings?
  • Next by Date: Re: table column with <date value> null placeholder
  • Previous by thread: Re: Function to write to one pixel?
  • Next by thread: Re: Function to write to one pixel?
  • Index(es):
    • Date
    • Thread