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: Create semi-transparent NSImage




You should have kept reading the docs. :-) Use - compositeToPoint:operation:fraction: ... the operation and fraction are how you specify how to draw the image. -compositeToPoint: doesn't change anything - just composites the image as-is.


--
I.S.


On Feb 28, 2006, at 8:11 AM, Michael Petnuch wrote:

Hello,

I am trying to create a semi-transparent thumbnail for my application when I perform drag and drop. The problem is, the source image is not transparent. I know that you can draw the NSImage transparent by using the compositeToPoint methods, but those do not actually change the data. I need the actual NSImage to contain the transparent image so that I can pass it to the function:

dragImage:at:offset:event:pasteboard:source:slideBack:

How does an application like iPhoto create the transparent thumbnail?

Thanks in advance.

---------------------------------------------------------------
Michael Petnuch
http://www.petnuch.com
email@hidden



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


This email sent to email@hidden

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

This email sent to email@hidden
References: 
 >Create semi-transparent NSImage (From: Michael Petnuch <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.