lcms2.Flag¶
- class Flag(*values)[source]¶
Bases:
IntFlagLittleCMS transform flags (
cmsFLAGS_*).Flag.parseaccepts an int, aFlagor a string such as"NOOPTIMIZE,BLACKPOINTCOMPENSATION"(separators,|;or spaces).8BITS_DEVICELINKis spelledEIGHTBITS_DEVICELINKin Python.Examples
>>> Flag.parse("gamutcheck|softproofing") == Flag.GAMUTCHECK | Flag.SOFTPROOFING True >>> int(Flag.grid_points(33)) 2162688
- __init__(*args, **kwds)¶
Methods
conjugate()Returns self, the complex conjugate of any int.
bit_length()Number of bits necessary to represent self in binary.
bit_count()Number of ones in the binary representation of the absolute value of self.
to_bytes([length, byteorder, signed])Return an array of bytes representing an integer.
from_bytes(bytes[, byteorder, signed])Return the integer represented by the given array of bytes.
as_integer_ratio()Return a pair of integers, whose ratio is equal to the original int.
is_integer()Returns True.
grid_points(n)Flag requesting
nCLUT grid points per dimension (cmsFLAGS_GRIDPOINTS).parse(value)Convert
None, an int or a flag string to aFlag.__init__(*args, **kwds)Attributes
realthe real part of a complex number
imagthe imaginary part of a complex number
numeratorthe numerator of a rational number in lowest terms
denominatorthe denominator of a rational number in lowest terms
- NONE = 0¶
- CLUT_POST_LINEARIZATION = 1¶
- FORCE_CLUT = 2¶
- NOWHITEONWHITEFIXUP = 4¶
- EIGHTBITS_DEVICELINK = 8¶
- CLUT_PRE_LINEARIZATION = 16¶
- GUESSDEVICECLASS = 32¶
- NOCACHE = 64¶
- KEEP_SEQUENCE = 128¶
- NOOPTIMIZE = 256¶
- NULLTRANSFORM = 512¶
- HIGHRESPRECALC = 1024¶
- LOWRESPRECALC = 2048¶
- GAMUTCHECK = 4096¶
- BLACKPOINTCOMPENSATION = 8192¶
- SOFTPROOFING = 16384¶
- NONEGATIVES = 32768¶
- NODEFAULTRESOURCEDEF = 16777216¶
- COPY_ALPHA = 67108864¶