Leadtools.Codecs Namespace > CodecsLoadInformationEventArgs Class : GetColorMask Method |
public RasterColor[] GetColorMask()
'Declaration Public Function GetColorMask() As RasterColor()
'Usage Dim instance As CodecsLoadInformationEventArgs Dim value() As RasterColor value = instance.GetColorMask()
public RasterColor[] GetColorMask()
function Leadtools.Codecs.CodecsLoadInformationEventArgs.GetColorMask()
public: array<RasterColor>^ GetColorMask();
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
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