This allows you to assign a transparent color or color range to
the image.
You need to specify two values for each component of the color.
For a particular pixel, if all the components of the color fall
within the specified ranges, then the pixel will not be displayed.
For example, to make pure white elements of an RGB transparent
you might specify,
doc.SetChromakey("255 255 255 255 255 255")
If you wanted to include colors which were off-white you might
use,
doc.SetChromakey("250 255 250 255 250 255")
This function is equivalent to setting the PixMap "/Mask"
entry to an array of color values.
|