Logo Search packages:      
Sourcecode: race version File versions

int CAImageManipulation::getCoordinateX ( int  width,
int  pos 
) [static]

Gets a x coordinate from a data position in a 4bpp image.

pos The position (index of unsigned char* array)
width Image width in pixels

Definition at line 454 of file caimagemanipulation.cpp.

Referenced by rotate().

  return ((int)(floor((float)pos/4)))%width;

Generated by  Doxygen 1.6.0   Back to index