[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] keep-aspect scale



Hi!

A simple question:
I have a Rect (inside of a frame) that can be of any size 
and I have another Rect (image) that also can be of any 
size. I want to scale the image to be as big as possible 
inside the frame while keeping aspectratio so it doesn't 
get too wide or too tall.

Any tips?

Regards
Per Wigren

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org