←Select platform

SetColorMask Method

Summary

Sets the array of integer values that represent RGB color masks.

Syntax
C#
VB
Objective-C
C++
Java
public void SetColorMask( 
   int[] colorMask 
) 
Public Sub SetColorMask( _ 
   ByVal colorMask() As Integer _ 
)  
@property (nonatomic, strong, nullable) NSArray<LTRasterColor *> *colorMask 
public void setColorMask(int colorMask[]) 
public: 
void SetColorMask(  
   array<int>^ 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.

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

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly