Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.8.30
|
Leadtools.Codecs Namespace > CodecsStartDecompressOptions Structure : SetColorMask Method |
'Usage
Dim instance As CodecsStartDecompressOptions Dim colorMask() As Integer instance.SetColorMask(colorMask)
@property (nonatomic, strong, nullable) NSArray<LTRasterColor *> *colorMask
public void setColorMask(int colorMask[])
function Leadtools.Codecs.CodecsStartDecompressOptions.SetColorMask( colorMask )
public: void SetColorMask( array<int>^ colorMask )
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