Re: Filling an NSBezierPath with a texture
Re: Filling an NSBezierPath with a texture
- Subject: Re: Filling an NSBezierPath with a texture
- From: p3consulting <email@hidden>
- Date: Sun, 13 Mar 2005 13:01:11 +0100
+ info here (Quartz):
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/
drawingwithquartz2d/dq_patterns/chapter_7_section_6.html
Pascal Pochet
email@hidden
----------------------------------
PGP
KeyID: 0x208C5DBF
Fingerprint: 9BFB 245C 5BFE 7F1D 64B7 C473 ABB3 4E83 208C 5DBF
Le 13 mars, 2005, à 12:20, Stéphane Sudre a écrit :
On dimanche, mars 13, 2005, at 09:57 AM, Damien Sorresso wrote:
Simple question, probably not a simple answer. :)
Is there any way I can fill a closed NSBezierPath with a texture
instead of a solid color?
Yes, create a NSColor which is a texture.
+ (NSColor*)colorWithPatternImage:(NSImage*)image;
_______________________________________________
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
_______________________________________________
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