• 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: Setting the opacity of a line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the opacity of a line


  • Subject: Re: Setting the opacity of a line
  • From: Moray Taylor <email@hidden>
  • Date: Sat, 29 Jan 2005 18:04:42 +0000

It's the NSColor that defines opacity, you can create a semi-transparent color by altering the alpha argument of the following method (and other methods)

+ (NSColor *)colorWithDeviceRed:(float)red green:(float)green blue:(float)blue alpha:(float)alpha

Moray

Hello to all,
I've an NSView and I'm using the drawRect method to draw inside this view. I'd like to reduce the opacity of some (not all) of the shapes designed here.


NSBezierPath doesn't have a setOpacity method. How can I handle this?



Thanks in advance,
Luca.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


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
References: 
 >Setting the opacity of a line (From: Luca Torella <email@hidden>)

  • Prev by Date: Plugins and NSImage logging faults to the console
  • Next by Date: Re: NSController: Connections vs Bindings
  • Previous by thread: Setting the opacity of a line
  • Next by thread: Plugins and NSImage logging faults to the console
  • Index(es):
    • Date
    • Thread