[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] pygame for 2d graphics
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] pygame for 2d graphics
- From: "Brian Fisher" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Mar 2008 09:50:00 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 19 Mar 2008 12:50:07 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Yjh5IUrviZqK9B+uaGKkXJ2yDtp+2E33bzfTRt1PObs=; b=QDxNYaE8qXqI+webkFkNQJ6kG4xUmwnVlo0kSsZa1ebbzmN0514J2nRt9ABkvoA7C4TAs+mocDqvGIF3mi0unfyFYGAGu0obL9ASFbbTmy+W7kD8ZrFy/fa6MwLGe+TU4ybieIZIsnYM5WZdu9neBnve4Tag7V3j9/ZGIb9EqAw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=GMt8aygvZSJ2yqc+Q9NRyOgVT1ZybJFwhQ5Mmopj8YDfTdDqlvipYmoxwlOAhO6/Ar+VglPy18xeznKDnhrmMpP53Fl6n+rZWlz7cG5B0QBdR6f62oBpBa9AccqvRw+ryouUyLLqOHoFN82gn4tpgiNqPG/aoQvRZjvaj9S8sMk=
- In-reply-to: <001301c889be$46452fb0$82c513ac@xxxxxxxx>
- References: <001301c889be$46452fb0$82c513ac@xxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
try rotozoom instead of scale... scale is like a "nearest neighbor"
scale, so it throws out a lot of pixels. rotozoom is a resampler.
On Wed, Mar 19, 2008 at 5:39 AM, Madhubala <madhubalav@xxxxxxxxxxxxxx> wrote:
>
> s1 = pygame.transform.scale(s,(1000,750))
>
> When i am trying to scale down the original surface to pygame window , the
> rectangle is not visible.
> This is original scalling. I have to provide different scalling levels to
> provide zooming effect .
>
> What more need to be done to get rectangle visible ?
>