Logo Search packages:      
Sourcecode: race version File versions

int CAImageManipulation::getDataPosition ( int  width,
int  x,
int  y 
) [static]

Gets the data position (index of unsigned char* array) from a given x/y coordinate

x X-Coordinate
y Y-Coordinate
width Image width in pixels

Definition at line 480 of file caimagemanipulation.cpp.

Referenced by getExactColor().

  return (y * width + x) * 4;

Generated by  Doxygen 1.6.0   Back to index