Re: Image transition
Re: Image transition
- Subject: Re: Image transition
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 27 Jul 2005 12:34:40 -0700
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:
This email sent to email@hidden