• 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
New NSImage...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New NSImage...


  • Subject: New NSImage...
  • From: "Brian O'Brien" <email@hidden>
  • Date: Fri, 30 Jul 2004 10:02:58 -0600

I'm trying to create an NSImage to show in an NSImageView.

I want to be able to set the:
width,
height,
number of bits per pixel,
number of samples per pixel
and I have a pointer to an unsigned char * img[x*y*samplesPerPixel]

I don't know if the image width must be rounded in cocoa...

I gather I need to somehow create a bitmapImageRep and and NSImage and that I add the representation
to the NSImage and then I add the NSImage to the NSImageView...

Help please.

TIA
Brian.
_______________________________________________
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: New NSImage...
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: binding causing retain loop?
  • Next by Date: Re: speeding view loading
  • Previous by thread: Setting font for NSTextView
  • Next by thread: Re: New NSImage...
  • Index(es):
    • Date
    • Thread