MonobjcMonobjc Documented Class Library
ColorWithRedGreenBlueAlpha Method (r, g, b, a)
NamespacesMonobjc.QuartzCoreCIColorColorWithRedGreenBlueAlpha(CGFloat, CGFloat, CGFloat, CGFloat)

Creates a color object using the specified RGBA color component values.

Original signature is '+ (CIColor *)colorWithRed:(CGFloat)r green:(CGFloat)g blue:(CGFloat)b alpha:(CGFloat)a'

Available in 4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static CIColor ColorWithRedGreenBlueAlpha(
	CGFloat r,
	CGFloat g,
	CGFloat b,
	CGFloat a
)
Public Shared Function ColorWithRedGreenBlueAlpha ( _
	r As CGFloat, _
	g As CGFloat, _
	b As CGFloat, _
	a As CGFloat _
) As CIColor
public:
static CIColor^ ColorWithRedGreenBlueAlpha(
	CGFloat r, 
	CGFloat g, 
	CGFloat b, 
	CGFloat a
)
Parameters
r (CGFloat)
The value of the red component.
g (CGFloat)
The value of the green component.
b (CGFloat)
The value of the blue component.
a (CGFloat)
The value of the alpha component.
Return Value
A Core Image color object that represents an RGB color in the color space specified by the Quartz 2D constant kCGColorSpaceGenericRGB and an alpha value.
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)