Colorspace¶
Represents the color space of a Pixmap.
Class API
- class Colorspace¶
- __init__(self, n)¶
Constructor
- name¶
The name identifying the colorspace. Example: pymupdf.csCMYK.name = ‘DeviceCMYK’.
- Type:
str
- n¶
The number of bytes required to define the color of one pixel. Example: pymupdf.csCMYK.n == 4.
- type:
int
Predefined Colorspaces
For saving some typing effort, there exist predefined colorspace objects for the three available cases.