KiteMaskTransfer
The transfer function of a soft mask as a table of 256 levels (ISO 32000-1, 11.6.5.2, Table 144, /TR). The table maps each value of the mask group, its alpha or its luminosity, to the mask value that gates the content. Both run from 0 to 255.
Functions
Link copied to clipboard
The table as 256 bytes, for a backend that takes a lookup table.
Link copied to clipboard
Turns the pixels of a drawn mask group into mask values, in place, for a backend that gates by pixels because it has no table colour filter. Each pixel of argb, straight ARGB, becomes black with the alpha of its mask value: its luminosity 0.30 R + 0.59 G