• 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
NSBitmapImageRep and 0RGB data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBitmapImageRep and 0RGB data


  • Subject: NSBitmapImageRep and 0RGB data
  • From: Chris Hanson <email@hidden>
  • Date: Thu, 27 Jun 2002 12:39:59 -0500

If you tell an instance of NSBitmapImageRep to init with data planes etc. a 32 bpp image using a color space of NSDeviceRGBColorSpace, it normally expects image data in RGBA order. I have 0RGB data. Right now I'm munging the data into RGBA before creating an NSBitmapImageRep, but I think I'm probably doing a bit too much work. (I also haven't optimized it for AltiVec, so it's relatively slow.)

Is there a color space constant I can pass that will let NSBitmapImageRep know my data is in 0RGB order, and let it do the conversion itself? Or is there some other mechanism I should use?

-- Chris

--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSBitmapImageRep and 0RGB data
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Problem with socket timeout (Similar to :CFSocket and CFRunLoopRun questions).
  • Next by Date: Storing generic objects as plists (i.e. plist object persistence)
  • Previous by thread: Re: Problem with socket timeout (Similar to :CFSocket and CFRunLoopRun questions).
  • Next by thread: Re: NSBitmapImageRep and 0RGB data
  • Index(es):
    • Date
    • Thread