Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
GetColorMask Method
See Also 
Leadtools.Codecs Namespace > CodecsStartDecompressOptions Structure : GetColorMask Method




Gets an array of integer values that represent RGB color masks.

Syntax

Visual Basic (Declaration) 
Public Function GetColorMask() As Integer()
Visual Basic (Usage)Copy Code
Dim instance As CodecsStartDecompressOptions
Dim value() As Integer
 
value = instance.GetColorMask()
C# 
public int[] GetColorMask()
Managed Extensions for C++ 
public: int[] GetColorMask(); 
C++/CLI 
public:
array<int> GetColorMask(); 

Return Value

An array of 3 integers as follows: ColorMask[0] is the red mask; ColorMask[1] is the green mask; ColorMask[2] is the blue mask.

Example

For an example, refer to RasterCodecs.StartDecompress.

Remarks

The color mask is valid only if Format is set to RasterImageFormat.RawBitfields.

As an example, with 16-bit data arranged as RRR RRGG GGGB BBBB, the masks would be:

            ColorMask[0] = 0x7C00
            ColorMask[1] = 0x0E30
            ColorMask[2] = 0x001F
            

For 32-bit data, the only valid data is RRRR RRRR GGGG GGGG BBBB BBBB. The masks would be:

            ColorMask[0] = 0xFF0000
            ColorMask[1] = 0x00FF00
            ColorMask[2] = 0x0000FF
            

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also