Jump to content
  • Advertisement
Sign in to follow this  
dmacnevin

NSBitmapImageRep

This topic is 4971 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey there, I'm currently working on creating an application that uses bump mapping using nehe's tutorial 22 as a guideline and I ran into a small issue with image storing and manipulation that I was hoping someone could help me out with. (I am also using a mac, so this question is actually mac specific) I am currently using NSBitmapImageRep to store the image in my program, but I recently read that NSBitmapImageRep pre-multiplies the data if there is an alpha component. (That is it multiplies the source bitmap RGB pixels by the alpha value before it stores the image in NSBitmapImageRep). In nehe's tutorial he modifies the RGB values of the bitmap before it was stored and I was wondering if I would still be able to accomplish this step using NSBitmapImageRep because of the pre-multiplication step that NSBitmapImageRep does. I was also reading that if you want to be able to modify the bitmap pixel values then this is not the way to go, and that the Quartz function CGImageCreate should be used along with kCGImageAlphaLast. If anyone has any ideas or comments on this, it would be greatly appreciated. Thanks Danielle

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
www.idevgames.com

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!