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: Image transition




On Jul 27, 2005, at 7:52 AM, Luca Nalin wrote:

Hi,
I'm working on a small image viewer and I would like to know what's the
best way to implement a fade transition between two images. I would
prefer to use a method compatible with both Tiger and Panther, but I
don't know where to start!

See NSImage's -dissolveToPoint:fraction: and - dissolveToPoint:fromRect:fraction: methods. Draw the first image, then draw the second image over it in a loop, while decreasing the fraction for the first image and increasing it for the second.


HTH,

-jcr


John C. Randolph <email@hidden> (408) 914-0013 Roaming Cocoa Engineer, Available for your projects at great Expense and Inconvenience.



_______________________________________________
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: 
 >Image transition (From: Luca Nalin <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.