[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame.transform.scale and anti-aliasing



Hello

Thanks a lot for the hints! I made a try with pygame.image.rotzoom and the quality is really much better! The outline (anti-aliasing) will be removed more the smaller you zoom in but its still much better than the scale functions. I didnt test the performance yet but rotzoom doesn't seem to be much slower.

Thanks!!!!

Farai


Am 08.10.2006 um 18:00 schrieb Patrick Mullen:


pygame.image.scale is a bitmap-only scale, so you will lose a lot of quality with it and it will look bad - but it's fast. pygame.image.rotozoom will give you much higher quality filtered results, and will preserve the image quality. I'm not sure about the outline - if you are blitting with alpha it should be ok. If you are blitting with color_key than rotozoom might introduce anti- aliasing artifacts on the edges.


But yes, the function your looking for is rotozoom.

Or use OpenGL.