pygame   documentation
||  Home  ||  Help Contents  ||
 
|| pygame || cdrom || constants || cursor || display || draw ||
|| event || font || image || joystick || key || mixer ||
|| mixer_music || mouse || movie || sndarray || surfarray || time ||
|| transform ||
 
|| CD || Channel || Clock || Font || Joystick || Movie ||
|| Overlay || Rect || Sound || Surface ||
 
|| color || cursors || sprite ||

pygame.transform

Contains routines to transform a Surface image.
 
All transformation functions take a source Surface and return a new copy of that surface in the same format as the original.
 
Some of the filters are 'destructive', which means if you transform the image one way, you can't transform the image back to the exact same way as it was before. If you plan on doing many transforms, it is good practice to keep the original untransformed image, and only translate that image.
chop - remove a region of an surface
flip - flips a surface on either axis
rotate - rotate a Surface
rotozoom - smoothly scale and/or rotate an image
scale - scale a Surface to an arbitrary size
scale2x - doubles the size of the image with advanced scaling

chop
pygame.transform.chop(Surface, rectstyle) -> Surface
 
flip
pygame.transform.flip(Surface, xaxis, yaxis) -> Surface
 
rotate
pygame.transform.rotate(Surface, angle) -> Surface
 
rotozoom
pygame.transform.rotozoom(Surface, angle, zoom) -> Surface
 
scale
pygame.transform.scale(Surface, size) -> Surface
 
scale2x
pygame.transform.scale2x(Surface) -> Surface