MonobjcMonobjc Documented Class Library
GetRedGreenBlueAlpha Method (red, green, blue, alpha)
NamespacesMonobjc.AppKitNSColorGetRedGreenBlueAlpha(CGFloat%, CGFloat%, CGFloat%, CGFloat%)

Returns the receiver’s RGB component and opacity values in the respective arguments.

Original signature is '- (void)getRed:(CGFloat *)red green:(CGFloat *)green blue:(CGFloat *)blue alpha:(CGFloat *)alpha'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void GetRedGreenBlueAlpha(
	out CGFloat red,
	out CGFloat green,
	out CGFloat blue,
	out CGFloat alpha
)
Public Overridable Sub GetRedGreenBlueAlpha ( _
	<OutAttribute> ByRef red As CGFloat, _
	<OutAttribute> ByRef green As CGFloat, _
	<OutAttribute> ByRef blue As CGFloat, _
	<OutAttribute> ByRef alpha As CGFloat _
)
public:
virtual void GetRedGreenBlueAlpha(
	[OutAttribute] CGFloat% red, 
	[OutAttribute] CGFloat% green, 
	[OutAttribute] CGFloat% blue, 
	[OutAttribute] CGFloat% alpha
)
Parameters
red (CGFloat%)
Upon return, contains the red component of the color object.
green (CGFloat%)
Upon return, contains the green component of the color object.
blue (CGFloat%)
Upon return, contains the blue component of the color object.
alpha (CGFloat%)
Upon return, contains the opacity value of the color object.
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)