On Apr 2, 12:44 pm, Jimmy <[EMAIL PROTECTED]> wrote:
> I am using Pygame to write a small program. I tried to load a .jpg
> picture into
> the screen, however, the size of the pic doesn't fit into the window
> properly. Can
> anyone tell me how to scale the picture into the window?
Have you tried
Isn't PIL best suited for things like this?
The resize function should do what you're looking for:
http://www.pythonware.com/library/pil/handbook/image.htm
On Wed, Apr 2, 2008 at 6:59 AM, <[EMAIL PROTECTED]> wrote:
> On Apr 1, 9:44 pm, Jimmy <[EMAIL PROTECTED]> wrote:
> > Hi, everyone
> >
> >
On Apr 1, 9:44 pm, Jimmy <[EMAIL PROTECTED]> wrote:
> Hi, everyone
>
> I am using Pygame to write a small program. I tried to load a .jpg
> picture into
> the screen, however, the size of the pic doesn't fit into the window
> properly. Can
> anyone tell me how to scale the picture into the window?
Hi, everyone
I am using Pygame to write a small program. I tried to load a .jpg
picture into
the screen, however, the size of the pic doesn't fit into the window
properly. Can
anyone tell me how to scale the picture into the window?
thanks!
--
http://mail.python.org/mailman/listinfo/python-list