New NSImage...
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.