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: How to grab IconRef from a .tiff file.



On 21/08/2003 05:35, Laurence Harris wrote:

> On 8/20/03 7:38 PM, Mike Kluev didst favor us with:
>
>> err = GraphicsImportSetGraphicsMode(component,
>> graphicsModeStraightAlpha, NULL);
>
> What does this line do? In my tests, this has no effect on the resulting
> icon. For me, SetIconFamilyData always creates a solid black mask no matter
> what I do. Am I missing something?

It is supposed to preserve alpha channel information. In fact it
does, so the picture created with GraphicsImportGetAsPicture still
contain alpha. Unfortunately it is of no use here, because when
picture is converted to icon with SetIconFamilyData the icon is
created without proper mask. As of now I do not know how to create
an icon with proper mask from translucent picture.

Mike
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How to grab IconRef from a .tiff file. (From: Laurence Harris <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.