MonobjcMonobjc Documented Class Library
CreateCopyWithAlpha Method (color, alpha)
NamespacesMonobjc.ApplicationServicesCGColorCreateCopyWithAlpha(IntPtr, CGFloat)

Creates a copy of an existing Quartz color, substituting a new alpha value.

Original signature is 'CGColorRef CGColorCreateCopyWithAlpha ( CGColorRef color, CGFloat alpha );'

Available in Mac OS X version 10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static IntPtr CreateCopyWithAlpha(
	IntPtr color,
	CGFloat alpha
)
Public Shared Function CreateCopyWithAlpha ( _
	color As IntPtr, _
	alpha As CGFloat _
) As IntPtr
public:
static IntPtr CreateCopyWithAlpha(
	IntPtr color, 
	CGFloat alpha
)
Parameters
color (IntPtr)
MISSING
alpha (CGFloat)
MISSING
Return Value
A copy of the specified color, using the specified alpha value. You are responsible for releasing this object using CGColorRelease.
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)