ImageGear for .NET
GetColorMask Method
See Also  Send Feedback
ImageGear21.Formats.Pdf Assembly > ImageGear.Formats.PDF Namespace > ImGearPDEImage Class : GetColorMask Method




Glossary Item Box

Obtains the Mask entry from the image dictionary.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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

©2013. Accusoft Corporation. All Rights Reserved.