MonobjcMonobjc Documented Class Library
ColorWithAlphaComponent Method (alpha)
NamespacesMonobjc.AppKitNSColorColorWithAlphaComponent(CGFloat)

Creates and returns an NSColor object that has the same color space and component values as the receiver, but the specified alpha component.

Original signature is '- (NSColor *)colorWithAlphaComponent:(CGFloat)alpha'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSColor ColorWithAlphaComponent(
	CGFloat alpha
)
Public Overridable Function ColorWithAlphaComponent ( _
	alpha As CGFloat _
) As NSColor
public:
virtual NSColor^ ColorWithAlphaComponent(
	CGFloat alpha
)
Parameters
alpha (CGFloat)
The opacity value of the new NSColor object.
Return Value
The new NSColor object. If the receiver’s color space doesn’t include an alpha component, the receiver is returned.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)