Instance Method

setPixel:atX:y:

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

Declaration

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

Parameters

pixelData

An array of integers representing the raw pixel values. The values must be in an order appropriate to the object’s bitmap format. Small pixel sample values should be passed as an integer value. Floating point values should be cast int[].

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.

- getPixel:atX:y:

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