• 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: NSImage get / set Pixels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage get / set Pixels


  • Subject: Re: NSImage get / set Pixels
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 17 Mar 2006 12:50:55 -0800


On Mar 17, 2006, at 8:37 AM, goessly wrote:

What are you trying to accomplish?

Actually I'm recycling an old project of mine, a GIMP-Plugin for removing perspective distortions form input pictures, to Cocoa. From a given set of reference points I calculate a calibration matrix of sorts. This is used to obtain - for each pixel in the output-pic - the color of the corresponding, non-distorted point from the source-image.
I receive the correct values from my math-routines, but am quite unable to write them to a visible output. I'm attempting to write them to a (focussed) NSBitmapImageRep *outRep, which in turn is passed to an NSImage outputImage in order to be drawn into an NSImageView. But the ImageView remains empty, and I don't know why.


Any hints?

Yep. It's a job for CoreImage. Start here:

file:///Developer/ADC Reference Library/documentation/ GraphicsImaging/Conceptual/CoreImaging/index.html

-jcr


John C. Randolph <email@hidden> (408) 914-0013 Roaming Cocoa Engineer, Available for your projects at great Expense and Inconvenience.



_______________________________________________
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: 
 >NSImage get / set Pixels (From: goessly <email@hidden>)
 >Re: NSImage get / set Pixels (From: Ricky Sharp <email@hidden>)
 >Re: NSImage get / set Pixels (From: goessly <email@hidden>)
 >Re: NSImage get / set Pixels (From: "John C. Randolph" <email@hidden>)
 >Re: NSImage get / set Pixels (From: goessly <email@hidden>)

  • Prev by Date: Re: CHUD and Sampler.app crash
  • Next by Date: Interapplication Pasteboard Communication
  • Previous by thread: Re: NSImage get / set Pixels
  • Next by thread: Subclassing a NSMutableArray
  • Index(es):
    • Date
    • Thread