Re: Save tiff with no alpha
Re: Save tiff with no alpha
- Subject: Re: Save tiff with no alpha
- From: Marco Binder <email@hidden>
- Date: Mon, 11 Nov 2002 22:36:06 +0100
Well, I m afraid, then youll have to really do it manually. Just like
in your previous approach, copying the bitmapData, just this time, you
have to ignore every fourth byte (if original is in 8 bits/sample) of
your srcBuffer.
scrBuffer[0] -> destBuffer[0]
srcBuffer[1] -> destBuffer[1]
srcBuffer[2] -> destBuffer[2]
srcBuffer[4] -> destBuffer[3]
...
Its not that hard and its not even that slow as it might sound. I do it
in one of my apps and it works cool. You can also search the archives
for that to find some code, or mail me for mine.
marco
Am Montag, 11.11.02 um 21:45 Uhr schrieb Ben Mackin:
On 11/11/02 4:00 AM, "Marco Binder" <email@hidden> wrote:
Have you tried to add your destImageRep to an new NSImage, then call
lockFocusOnRepresentation: on your image and simply draw your other
image or imageRep into that one? Havent tried, but might work, I guess
Nope, doesn't work. My saved image still has the alpha channel. This
seems
like it is more difficult than it should be.
I tried searching the archives, and I could come up with anything
there. Has
anyone on the list done this? I am sure someone out there has had to
tackle
this issue.
Thanks,
Ben
_______________________________________________
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.
--
|\ /| E-Mail: email@hidden WWW: www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
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.