Passing a
positive integer for either Point value will respond with an enlargement for that dimension, while a
negative integer for either Point value will respond with a reduction.
Finally, the destination parameter is the location on the destination Surface as a Point object,
while the flags parameter accepts one of the static variables of the Surface class, as detailed in
Table 19 - 1 .
Table 19-1
Variable Description
DEFAULT The default value. Performs no further alteration.
TAA Uses the interpolating renderer, which is much slower but can look better.
TSAFE Doesn??™t assume that the source and destination surfaces have the same pixel format.
This is the default when the two surfaces don??™t have the same bits per pixel and is
slower but will render weird pixel formats properly.
TTMAP Use texture mapping. This is a bit faster but the result isn??™t as nice as the default
mode. This mode will also ignore the pivot coordinates and any other flags used.
Part III: Extending the Possibilities
542
The transform method returns a Rect object detailing the size and location of the image drawn on
the destination Surface object.
Pages:
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009