Re: Setting up an image's alpha using a 256 grayscale image
Re: Setting up an image's alpha using a 256 grayscale image
- Subject: Re: Setting up an image's alpha using a 256 grayscale image
- From: Jason Harris <email@hidden>
- Date: Tue, 04 Mar 2003 18:36:24 -0700
Basically, get an NSBitmapImageRep for both images, then create a new
NSBitmapImageRep for the destination image. Get the source bytes using
[NSBitmapImageRep bitmapData] and bitbang 'em into place. You'll need to
manually premultiply the destination.
If you have no idea what I'm talking about, respond and I'll go into more
detail.
Jason Harris
Geekspiff
Yojimbo Tried to Tell Me:
>
Sorry to ask this of the whole list, but does anyone happen to know of
>
a good way to go about configuring the alpha channel of an image using
>
another 256 greyscale or B&W bitmap image? I can't seem to find many
>
pointers except some QuickDraw references. Is there an easier way?
>
>
Thanks in advance,
>
Jim
>
_______________________________________________
>
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.
_______________________________________________
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.