MonobjcMonobjc Documented Class Library
GetPixelAtXy Method (pixelData, x, y)
NamespacesMonobjc.AppKitNSBitmapImageRepGetPixelAtXy(array<NSUInteger>[]()[][], NSInteger, NSInteger)

Returns by indirection the pixel data for the specified location in the receiver.

Original signature is '- (void)getPixel:(NSUInteger[])pixelData atX:(NSInteger)x y:(NSInteger)y'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void GetPixelAtXy(
	NSUInteger[] pixelData,
	NSInteger x,
	NSInteger y
Public Overridable Sub GetPixelAtXy ( _
	pixelData As NSUInteger(), _
	x As NSInteger, _
	y As NSInteger _
virtual void GetPixelAtXy(
	array<NSUInteger>^ pixelData, 
	NSInteger x, 
	NSInteger y
pixelData (array<NSUInteger>[]()[][])
On return, an array of integers containing raw pixel data in the appropriate order for the receiver’s bitmapFormat. Smaller integer samples, such as 4-bit, are returned as an integer. Floating point values are cast to integer values and returned.
x (NSInteger)
The x-axis coordinate of the pixel.
y (NSInteger)
The y-axis coordinate of the pixel.
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)