Skip navigation.
 
mlRe: Making a "shaped" NSImage
FROM : Dave Mattson
DATE : Mon Nov 18 18:25:16 2002

Hello:
It's always going to be a rectangle.  But you control things by the
NSComposite choice when drawing the image.  ClipPath can help to make sure
there is no unintended filling the whole rectangle but that image is still
going to be a rectangle.

The different NSComposite's can cause a lot of different effects, you are
probably looking for "Source Over".  Then, at least a black curve on a white
background (don't draw the background into the image-unless you want the
inside of the curve filled), will just draw the curve at image draw time.


Dave Mattson
<email_removed>
ph: 608 635 7972
fax: 608 635 8971
cell: 608 444 5245
Dekorra Optics, LLC
W9386 Parkway Drive
Poynette, WI 53955
----- Original Message -----
From: "Jeremy Faller" <<email_removed>>
To: <<email_removed>>
Sent: Monday, November 18, 2002 9:30 AM
Subject: Making a "shaped" NSImage


>
> All:
>
>  Hello everyone.  I have a question that I'm sure is pretty easy,

although I haven't quite been able to smurf it.
>
>  Let's pretend that I have an NSBezierPath that describes some region,

and I would like to draw an NSImage ONLY in the path.  I'm not concerned
right now with alpha, or any other component of the image.  Additionally, to
make it easy, let's assume the path is blackColor.  Does anyone know how to
do this?
>
>
> Thanks in advance.
>
> - Jeremy Faller.
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:

http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlMaking a "shaped" NSImage Jeremy Faller Nov 18, 16:30
mlRe: Making a "shaped" NSImage Ondra Cada Nov 18, 16:59
mlRe: Making a "shaped" NSImage Marco Binder Nov 18, 17:06
mlRe: Making a "shaped" NSImage Dave Mattson Nov 18, 18:25
mlRe: Making a "shaped" NSImage John C. Randolph Nov 18, 23:46
mlRe: Making a "shaped" NSImage Marco Binder Nov 19, 11:07