Re: CGShading
Re: CGShading
- Subject: Re: CGShading
- From: Shawn Erickson <email@hidden>
- Date: Sat, 31 Jul 2004 15:59:59 -0700
On Jul 31, 2004, at 3:53 PM, Shawn Erickson wrote:
On Jul 31, 2004, at 3:40 PM, Peter Laurens wrote:
Hi,
I am attempting to draw a simple gradient shade, and I have been
slowly going through the Quartz documentation to try and learn how to
achieve this.
I was pleased to see a sample project that shows off some code how to
do this. Unfortunately it's a very complex set of code with all sorts
of bits scattered all over the place in strange different functions,
and so it's difficult for me to follow properly... impossible in
fact. I am having a hard time stripping out the core stuff I need for
a gradient to be drawn, and the extra fluff the developer has added
around it.
Does anyone have a real simple CGShading demo project for me to take
a look at?
I'd be incredibly grateful for any help at all,
First off do you know about the NSShadow [1] class which is part of
Cocoa? It is not clear if you are dropping down to Quartz 2D just for
shadow or for other reasons.
-Shawn
[1]
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSShadow.html>
So after rereading your post I guess you really do want to do a
gradient fill not just a shadow on drawing (which is what I got the
first time I read your post). Right?
I assume you are looking at this documentation...
<
http://developer.apple.com/documentation/GraphicsImaging/Reference/
CGShading/index.html>
I saw an example of this a little bit ago, looking for it...
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >CGShading (From: Peter Laurens <email@hidden>) |
| >Re: CGShading (From: Shawn Erickson <email@hidden>) |