MonobjcMonobjc Documented Class Library
CreateWithColorComponents Method (space, components, locations, count)
NamespacesMonobjc.ApplicationServicesCGGradientCreateWithColorComponents(IntPtr, IntPtr, IntPtr, NSUInteger)

Creates a CGGradient object from a color space and the provided color components and locations.

Original signature is 'CGGradientRef CGGradientCreateWithColorComponents( CGColorSpaceRef space, const CGFloat components[], const CGFloat locations[], size_t count );'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr CreateWithColorComponents(
	IntPtr space,
	IntPtr components,
	IntPtr locations,
	NSUInteger count
)
Public Shared Function CreateWithColorComponents ( _
	space As IntPtr, _
	components As IntPtr, _
	locations As IntPtr, _
	count As NSUInteger _
) As IntPtr
public:
static IntPtr CreateWithColorComponents(
	IntPtr space, 
	IntPtr components, 
	IntPtr locations, 
	NSUInteger count
)
Parameters
space (IntPtr)
MISSING
components (IntPtr)
MISSING
locations (IntPtr)
MISSING
count (NSUInteger)
MISSING
Return Value
A CGGradient 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)