LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

GetColorMask Method (CodecsStartDecompressOptions)






Gets an array of integer values that represent RGB color masks. .NET support WinRT support Silverlight support
Syntax
public int[] GetColorMask()
'Declaration
 
Public Function GetColorMask() As Integer()
'Usage
 
Dim instance As CodecsStartDecompressOptions
Dim value() As Integer
 
value = instance.GetColorMask()
public int[] GetColorMask()
 function Leadtools.Codecs.CodecsStartDecompressOptions.GetColorMask()
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.
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
            

  

Example
For an example, refer to RasterCodecs.StartDecompress.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CodecsStartDecompressOptions Structure
CodecsStartDecompressOptions Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.