[Max Noel]
> ...
> This is where the palette comes into play. Each 256-color image
> has a palette, which is basically an array of length 256, where each
> element is a (24-bit RGB) color. The color data for each pixel in the
> image is actually an index in this array.
Adding a bit of detail,
On Thu, 2 Jun 2005, Max Noel wrote:
[explanation snipped]
> Makes sense?
Yes. Thanks very much.
I think the problem is the the PIL documentation (reasonably) assumes that
the reader already understands all the structures used in the imaging it
supports; it just explains how PIL gives a
On Jun 2, 2005, at 23:39, Terry Carroll wrote:
> The palette mode ("P") uses a colour palette to define the actual
> colour for each pixel.
>
>
>
> Not sure what that means, exactly, but it looks like im.palette
> will get
> the palette of a a P-mode image, and im.putpalette will change
On Thu, 2 Jun 2005, D. Hartley wrote:
> What does it mean if my image mode is "P"? In the documentation, it
> says "typical values are '1', 'L', 'RGB', 'CMYK.'" (it's a gif, if
> that's important)
That's really weird. It does say that (in the description of im.mode,
where you'd expect it). But
What does it mean if my image mode is "P"? In the documentation, it
says "typical values are '1', 'L', 'RGB', 'CMYK.'" (it's a gif, if
that's important)
Thanks! :)
~Denise
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/t