Re: Filling with a pattern *and* a color?
Re: Filling with a pattern *and* a color?
- Subject: Re: Filling with a pattern *and* a color?
- From: "I. Savant" <email@hidden>
- Date: Mon, 25 Sep 2006 14:19:37 -0400
You would need to create an image in those colors ...
+colorWithPatternImage: accepts an image. It's up to you to provide
it with an image in the colors you want.
--
I.S.
On Sep 25, 2006, at 2:14 PM, Scott Craver wrote:
Hi,
I want to draw a shape filled with a basic pattern (horizontal
stripes,)
using a color specified by the user. Basically like an old-school
drawing
program would.
Viewing earlier list entries, I saw that to use a pattern fill, I
had to
create the pattern as an image, and use:
[ [NSColor +colorWithPatternImage: myImage] setFill];
Done and done---but this only paints the pattern exactly as I
created it,
using the colors in the image. How on Earth do I fill that pattern
in a
specified color?
Thanks,
Xcott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
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:
This email sent to email@hidden