ImageGear .NET - Updated
SetColorMask Method




ImageGear24.Formats.Pdf Assembly > ImageGear.Formats.PDF Namespace > ImGearPDEImage Class : SetColorMask Method
Array of long values containing the color mask.
Sets the Mask entry from the image dictionary.
Syntax
'Declaration
 
Public Sub SetColorMask( _
   ByVal mask() As Integer _
) 
'Usage
 
Dim instance As ImGearPDEImage
Dim mask() As Integer
 
instance.SetColorMask(mask)
public void SetColorMask( 
   int[] mask
)
public: void SetColorMask( 
   int[]* mask
) 
public:
void SetColorMask( 
   array<int>^ mask
) 

Parameters

mask
Array of long values containing the color mask.
Remarks
The mask entry is an array specifying a range of colors to be masked out. Samples in the image that fall within this range are not painted, allowing the existing background to show through. The effect is similar to that of the video technique known as chroma-key.

The value of the Mask entry is an array of 2n integers, [min1 max1 ... minn maxn], where n is the number of color components in the image's color space. Each integer must be in the range 0 to 2 in power of BitsPerComponent - 1, representing color values before decoding with the Decode array. An image sample is masked (not painted) if all of its color components before decoding, c1...cn, fall within the specified ranges.

See Also

Reference

ImGearPDEImage Class
ImGearPDEImage Members