[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] converting byte image for display
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] converting byte image for display
- From: Peter Shinners <pete@xxxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 16:13:19 -0800
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 09 Jan 2006 21:02:32 -0500
- In-reply-to: <58cb4d1f0512311459g13fee732k54d87aa4001f866e@mail.gmail.com>
- References: <58cb4d1f0512311459g13fee732k54d87aa4001f866e@mail.gmail.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
On Sun, 2006-01-01 at 00:59 +0200, veto voima wrote:
> I've just started learning and understanding pygame. This my first
> post to the list.
>
> I'm stuck in optimizing a display loop for 8bit image buffers.
You shouldn't have to worry about display depths for things to get
working. Pygame (SDL really) will convert to and from 8bit palette
Surfaces as needed.
You can also use the Surface.convert() method do convert one Surface to
match any other Surface. Including 8bit palette conversions.