ImageGear .NET
GetColorMask Method




Obtains the Mask entry from the image dictionary.
Syntax
'Declaration
 
Public Function GetColorMask() As Integer()
'Usage
 
Dim instance As ImGearPDEImage
Dim value() As Integer
 
value = instance.GetColorMask()
public int[] GetColorMask()
public: int[]* GetColorMask(); 
public:
array<int>^ GetColorMask(); 

Return Value

Integer array.
Remarks
Use this method to obtain the Mask entry from the image dictionary. 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

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback