t3getp

Syntax

int t3getp(int x, int y)

Arguments

x, y
Image coordinates

Return

Returns the pixel value at the specified image coordinates

Description

This function lets you read a whole pixel from the third tile buffer. Unlike t3get the returned value includes the values of all color channels (including the transparency channel if one is available) of the pixel. Using t3getp instead of t3get takes only approximately half as much time. To decode the individual color values from the returned pixel value you have to use the Rval, Gval, Bval and Aval functions. Currently only works with 8 bit images.

Example

See Also

srcp, pgetp, psetp, tgetp, tsetp, t3setp, Rval, Gval, Bval and Aval

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.