Logo Search packages:      
Sourcecode: race version File versions

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

Gets a y 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 466 of file caimagemanipulation.cpp.

Referenced by rotate().

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

Generated by  Doxygen 1.6.0   Back to index