MonobjcMonobjc Documented Class Library
BlendedColorWithFractionOfColor Method (fraction, color)
NamespacesMonobjc.AppKitNSColorBlendedColorWithFractionOfColor(CGFloat, NSColor)

Creates and returns an NSColor object whose component values are a weighted sum of the receiver’s and the specified color object's.

Original signature is '- (NSColor *)blendedColorWithFraction:(CGFloat)fraction ofColor:(NSColor *)color'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSColor BlendedColorWithFractionOfColor(
	CGFloat fraction,
	NSColor color
)
Public Overridable Function BlendedColorWithFractionOfColor ( _
	fraction As CGFloat, _
	color As NSColor _
) As NSColor
public:
virtual NSColor^ BlendedColorWithFractionOfColor(
	CGFloat fraction, 
	NSColor^ color
)
Parameters
fraction (CGFloat)
The amount of the color to blend with the receiver's color. The method converts color and a copy of the receiver to RGB, and then sets each component of the returned color to fraction of color’s value plus 1 – fraction of the receiver’s.
color (NSColor)
The color to blend with the receiver's color.
Return Value
The resulting color object or nil if the colors can’t be converted.
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)