Instance Method

getPixel:atX:y:

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

Declaration

- (void)getPixel:(NSUInteger *)p atX:(NSInteger)x y:(NSInteger)y;

Parameters

pixelData

On return, an array of integers containing raw pixel data in the appropriate order according to the object’s bitmap format. Smaller integer samples, such as 4-bit, are returned as an integer. Floating point values are cast to integer values and returned.

x

The x-axis coordinate of the pixel.

y

The y-axis coordinate of the pixel.

See Also

Managing Pixel Values

- setColor:atX:y:

Changes the color of the pixel at the specified coordinates.

- colorAtX:y:

Returns the color of the pixel at the specified coordinates.

- setPixel:atX:y:

Sets the receiver's pixel at the specified coordinates to the specified raw pixel values.