Re: -[NSImage setBackgroundColor:] not working in 10.6
Re: -[NSImage setBackgroundColor:] not working in 10.6
- Subject: Re: -[NSImage setBackgroundColor:] not working in 10.6
- From: Ken Ferry <email@hidden>
- Date: Thu, 7 Oct 2010 08:55:33 -0700
On Oct 7, 2010, at 5:16 AM, Hamish Sanderson <email@hidden> wrote:
>
> On 7 Oct 2010, at 11:14, Ken Ferry wrote:
>
>> The problem here is the use of NSCompositeCopy. Try NSCompositeSourceOver.
>
> Already tried this. On 10.5.8, the transparent parts of the PDF appear white (the NSImage's assigned background color) as expected. On 10.6.4, the transparent parts of the PDF show whatever's behind the NSImage - i.e. the NSImage's background color is being ignored.
>
> I'm assuming this is a regression bug in 10.6, but want to check I've not overlooked anything before submitting a Radar report.
Well, you can submit it if you like, but the difference is a bug fix. That the background color ended up doing something in a specific path here was a bug and PDF specific. The 10.6 image rewrite removed inconsistencies like this. You're thinking that the background color is always filled before the image data is drawn, but this wasn't the case before 10.6 either.
I would suggest filling the color before you draw the image and using NSCompositeSourceOver.
-Ken
Cocoa Frameworks
>
> Thanks,
>
> Hamish
>
> --
>
> Hamish Sanderson
> Production Workflow Developer
> Sun Branding Solutions Ltd
> Tel: +44(0)1274 200 700
> www.sunbrandingsolutions.com
>
>
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden