Enumerators#


class psapi.enum.BitDepth#

Enum representing the bit depth of an image.

Attributes:
bd_8int

8-bits per channel, equivalent to numpy.uint8

bd_16int

16-bits per channel, equivalent to numpy.uint16

bd_32int

32-bits per channel, equivalent to numpy.float32

Members:

bd_8

bd_16

bd_32

property name#

class psapi.enum.ColorMode#

Enum representing the color mode of an file.

Attributes:
rgbint

rgb color mode(supports channels R, G, B and A)

cmykint

cmyk color mode(supports channels C, M, Y, K and A)

grayscaleint

grayscale color mode(supports channels Gray, A)

Members:

rgb

cmyk

grayscale

property name#
class psapi.enum.ChannelID#

Enum representation of all the different channel ids found in a file.

Attributes:
red: int

green: int

blue: int

cyan: int

magenta: int

yellow: int

black: int

gray: int

custom: int

mask: int

alpha: int

Members:

red

green

blue

cyan

magenta

yellow

black

gray

custom

mask

alpha

property name#