Python Graphics: Combining Raster and Vector PicturesDec 03, 2010, 22:34 (0 Talkback[s])
(Other stories by Mike Ohlson De Fine)
[ Thanks to Ramsai for this link. ]
"Vector graphics can be shrunk and expanded to any size and in any direction using simple algebra. They can be animated with rotations using basic trigonometry. Raster graphics are limited. They cannot be resized or rotated dynamically while the code is executing. They are more cumbersome. However, we can get tremendous effects when we combine both vector and raster graphics together. The one thing that Python cannot do is to rotate a GIF image by itself. There are ways of mimicking rotation reasonably but there are limitations you will appreciate after trying out some of these recipes. PIL can rotate them, but not dynamically on a Tkinter canvas. We explore some possibilities and workarounds here.
0 Talkback[s] (click to add your comment)