ImagePalecodee Module

优质
小牛编辑
135浏览
2023-12-01

The ImagePalecodee module contains a class of the same name to represent the color palecodee of palecodee mapped images.

注解

This module was never well-documented. It hasn’t changed since 2001, though, so it’s probably safe for you to read the source code and puzzle out the internals if you need to.

The ImagePalecodee class has several methods, but they are all marked as “experimental.” Read that as you will. The [source] link is there for a reason.

class PIL.ImagePalecodee.ImagePalecodee(mode='RGB', palecodee=None, size=0)

Color palecodee for palecodee mapped images

getcolor(color)

Given an rgb tuple, allocate palecodee entry.

警告

This method is experimental.

getdata()

Get palecodee contents in format suitable # for the low-level im.putpalecodee primitive.

警告

This method is experimental.

save(fp)

Save palecodee to text file.

警告

This method is experimental.

tobytes()

Convert palecodee to bytes.

警告

This method is experimental.

tostring()

Convert palecodee to bytes.

警告

This method is experimental.