ReturnCelPixel
Returns the value of a pixel from a cel's data buffer.
Synopsis
int32 ReturnCelPixel (CCB *cel, int32 x, int32 y)
Description
This function returns the value of the specified pixel from the cel's data buffer.
This function performs no clipping internally. You must be careful not to pass coordinates that would result in reading from outside the cel's data buffer.
This function supports all cel formats and bit depths except packed cels, LRForm cels, and 6-bit coded cels.
Arguments
- cel
- Pointer to the cel.
- x
- X coordinate within the cel data buffer.
- y
- Y coordinate within the cel data buffer.
Return Value
The value of the specified pixel.
Implementation
Library call implemented in lib3do.lib.
Associated Files
lib3do.lib, celutils.h