Re: CGShading
Re: CGShading
- Subject: Re: CGShading
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 12 Oct 2004 11:38:22 -0700
On Aug 1, 2004, at 9:27 AM, Ricky Sharp wrote:
On Aug 1, 2004, at 9:13 AM, Ricky Sharp wrote:
Here's some sample code that creates a pretty cool gradient by using
a Category for NSImage:
<http://developer.apple.com/samplecode/Transformed_Image/
Transformed_Image.html>
When I wrote that code, CGShading wasn't available. If I were writing
that sample today, I'd use GCShading. I should also point out that the
code assumes that bytesPerRow == pixelsWide, which isn't necessarily
the case.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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