- colorMask
- 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.
Visual Basic (Declaration) | |
---|---|
Public Sub SetColorMask( _ ByVal colorMask() As RasterColor _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As CodecsLoadInformationEventArgs Dim colorMask() As RasterColor instance.SetColorMask(colorMask) |
C# | |
---|---|
public void SetColorMask( RasterColor[] colorMask ) |
C++/CLI | |
---|---|
public: void SetColorMask( array<RasterColor>^ colorMask ) |
Parameters
- colorMask
- 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.
For an example, refer to RasterCodecs.LoadInformation.
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: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)