[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] keep-aspect scale
you have destRect=(w,h)
and scale the original picture par factor alphaworst
and center it
On Tue, 17 Jul 2001, Per Wigren wrote:
> 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?
> Per Wigren
> pygame mailing list
pygame mailing list