[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] pygame.transform.rotozoom
From: <wijgerden@hetnet.nl>
> "Nat Pryce" <nat.pryce@b13media.com> wrote:
> > According to the documentation, extra 'blank'
> > pixels around the rotated image are initialised
> > to the colour key of the original image, or to
> > the value of the top-left corner of the original
> > image if it does not have a colour key.
>
> Aha, it does that for pygame.transform.rotate
> (in my case getting the top-left corner pixel),
> but it doesn't do the same for the
> pygame.transform.rotozoom. Maybe rotozoom uses
> the colour key, I will check that out.
Oh you're right. My mistake. I don't know what rotozoom does but I'll look
into it. I'm going to have a dig around in the source and see how it works
because I'm trying to debug why scaling an image with rotozoom makes
translucent pixels (alpha = 128) become completely transparent. Any hints
on that issue would be most appreciated.
Cheers,
Nat.
________________________________
Dr. Nathaniel Pryce
B13media Ltd.
40-41 Whiskin St, London, EC1R 0BP, UK
http://www.b13media.com
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org