>
> Hi David,
> After a few days using CGContextBeginTransparencyLayer
> I have just noticed that the text I draw on a trasparent background with
>
>[super drawRect:rect]; // we are in a drawRect: method of a NSTextView
>
> looks without antialias. No matter whether I add before
Antialiasi
ed, 01 Jan 2014 17:44:01 -0800
> A: Leonardo
> Cc: Cocoa-dev
> Oggetto: Re: NSShadow with [bezierPath addClip]
>
> In CoreGraphics the way you would do this is to setup your shadow parameters,
> then start a transparency layer, do your drawing there, then composite that
> b
Whoa! I fired that off without thinking. The problem was with
AVCapturePreviewLayer, not AVPlayerLayer. I logged that and apparently it
sets it to YES internally. I set it to NO and am now getting a shadow for
the unmasked version. However, I do (optionally) apply a shaped masking
layer, which
The default of masksToBounds in CALayer is NO. I had my subclass of
AVPlayerLayer log it, and it does show it is still NO.
On 1/3/14 3:18 PM, "David Duncan" wrote:
> On Jan 3, 2014, at 11:09 AM, Gordon Apple wrote:
>
>> David,
>>
>> Now, if someone could just tell me why AVPlayerLayer won¹t
On Jan 3, 2014, at 11:09 AM, Gordon Apple wrote:
> David,
>
> Now, if someone could just tell me why AVPlayerLayer won¹t produce a shadow,
> when there is no such problem with QTMovieLayer in the same environment...
Is masksToBounds set to YES on the layer?
--
David Duncan
___
-0800 From: David Duncan
> To: Leonardo Cc: Cocoa-dev
> Subject: Re: NSShadow with [bezierPath addClip]
> Message-ID: Content-Type:
> text/plain; charset=us-ascii In CoreGraphics the way you would do this is to
> setup your shadow parameters, then start a transparency layer, do yo
Many thanks David. That did the trick.
Regards
-- Leonardo
> Da: David Duncan
> Data: Wed, 01 Jan 2014 17:44:01 -0800
> A: Leonardo
> Cc: Cocoa-dev
> Oggetto: Re: NSShadow with [bezierPath addClip]
>
> In CoreGraphics the way you would do this is to setup your shad
In CoreGraphics the way you would do this is to setup your shadow parameters,
then start a transparency layer, do your drawing there, then composite that
back to the original context. Something like this:
CGContextSetShadow(context, shadowOffset, shadowBlur);
CGContextBeginTransparencyLayer(cont
; the bezierPath
(to cast the shadow) I mix the whiteColor (or any other) with the
background color. And I cannot cast a shadow filling a path with a
clearColor.
I am puzzled.
Regards
-- Leonardo
> Da: Fritz Anderson
> Data: Tue, 31 Dec 2013 10:31:45 -0600
> A: Leonardo
> Cc: Coco
On 31 Dec 2013, at 6:15 AM, Leonardo wrote:
> In my NSView subclass, I have to draw an image within a bezierPath and apply
> an NSShadow to the result.
> So within the drawRect: method I add
>
> [bezierPath addClip];
> [mImage drawInRect:inRect fromRect:fromRect
> operation:NSCompositeSo
Thanks, Ken,
Will check it out and file a bug should be a cinch to create a
demo for them.
Need a yet another new class: NSMutableShadow :-))
Gary
On Nov 20, 2008, at 12:06 AM, Ken Ferry wrote:
Hi Gary,
Try making a new shadow rather than mutating the one you get from the
view. W
Hi Gary,
Try making a new shadow rather than mutating the one you get from the
view. When you set it back, the view does not realize the shadow has
changed, and so does not update the CoreAnimation layer tree.
Please file a bug for this.
-Ken
On Tue, Nov 18, 2008 at 1:19 AM, M Pulis <[EMAIL PR
You are right, it worked even with images.
Best Regards
--
Lorenzo
email: [EMAIL PROTECTED]
> From: Jean-Daniel Dupas <[EMAIL PROTECTED]>
> Date: Sat, 05 Apr 2008 15:06:22 +0200
> To: Lorenzo <[EMAIL PROTECTED]>
> Cc: cocoa-dev@lists.apple.com
> Subject: Re:
Le 5 avr. 08 à 13:42, Lorenzo a écrit :
As I understand, NSShadow works on vectorial paths only.
If so, how can I apply a shadow to a raster image with alpha? The
image has
an irregular border with a half-a-transparence. On Photoshop of
course this
can be done.
Best Regards
--
Lorenzo
14 matches
Mail list logo