• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dataWithPDFInsideRect: ignores alpha of a shading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dataWithPDFInsideRect: ignores alpha of a shading?


  • Subject: Re: dataWithPDFInsideRect: ignores alpha of a shading?
  • From: David Duncan <email@hidden>
  • Date: Thu, 10 Jul 2008 11:36:07 -0700

On Jul 10, 2008, at 5:47 AM, Graham Cox wrote:

I've noticed that when generating PDF data from a view with - dataWithPDFInsideRect:, transparent flat colours work OK, but gradients (CGShading) that have some colours that are not 100% opaque are not recorded correctly (the alpha is ignored and the colours are always 100% opaque).

Is this a known issue?


I think it would help of you filed a bug about this, I'm not certain if there is one already filed. If your shading uses a constant alpha value, I think you can work around this by using CGContextSetAlpha() to draw the shading with the target alpha (and making the shading itself opaque).
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________

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


References: 
 >dataWithPDFInsideRect: ignores alpha of a shading? (From: Graham Cox <email@hidden>)

  • Prev by Date: Mini Popup Window (Like iCal)
  • Next by Date: [OT] Re: Any good advice for naming parameters of init methods?
  • Previous by thread: dataWithPDFInsideRect: ignores alpha of a shading?
  • Next by thread: NSSavePanel bug with -setNameFieldLabel: workaround?
  • Index(es):
    • Date
    • Thread