MonobjcMonobjc Documented Class Library
ColorAtXy Method (x, y)
NamespacesMonobjc.AppKitNSBitmapImageRepColorAtXy(NSInteger, NSInteger)

Returns the color of the pixel at the specified coordinates.

Original signature is '- (NSColor *)colorAtX:(NSInteger)x y:(NSInteger)y'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSColor ColorAtXy(
	NSInteger x,
	NSInteger y
)
Public Overridable Function ColorAtXy ( _
	x As NSInteger, _
	y As NSInteger _
) As NSColor
public:
virtual NSColor^ ColorAtXy(
	NSInteger x, 
	NSInteger y
)
Parameters
x (NSInteger)
The x-axis coordinate.
y (NSInteger)
The y-axis coordinate.
Return Value
A color object representing the color at the specified coordinates.
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)