Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QD -> Quartz



On 11/21/04 2:44 PM, email@hidden didst favor us with:

> In general, however, it seems that you shouldn't have to supply a
> separate 8 bit mask because the CG calls will, themselves, generate the
> alpha channel.  I don't know what image formats the set family icon
> data routine will take. :-(

It takes a PICT (which isn't useable for this case), or it takes the actual
data for each icon type in the family. So you need these:

    err = SetIconFamilyData(iconFamily, kThumbnail32BitData, dataH);
    err = SetIconFamilyData(iconFamily, kThumbnail8BitMask, maskH);

It won't take an image with alpha and handle the data and mask
automatically. I seem to recall that if you feed it a PICT you'll just end
up with a solid black mask.

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: QD -> Quartz (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.