←Select platform

ColorResolutionCommand Constructor(ColorResolutionCommandMode,int,RasterByteOrder,RasterDitheringMethod,ColorResolutionCommandPaletteFlags,RasterColor[])

Summary

Initializes a new instance of the ColorResolutionCommand class with explicit parameters.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
- (instancetype)initWithMode:(LTColorResolutionCommandMode)mode  
                bitsPerPixel:(NSInteger)bitsPerPixel  
                       order:(LTRasterByteOrder)order  
             ditheringMethod:(LTRasterDitheringMethod)ditheringMethod  
                paletteFlags:(LTColorResolutionCommandPaletteFlags)paletteFlags  
                     palette:(nullable NSArray<LTRasterColor *> *)palette 
             
public ColorResolutionCommand( 
   ColorResolutionCommandMode mode,  
   int bitsPerPixel,  
   RasterByteOrder order,  
   RasterDitheringMethod ditheringMethod,  
   int paletteFlags,  
   RasterColor[] palette 
) 
             
function ColorResolutionCommand(  
   mode , 
   bitsPerPixel , 
   order , 
   ditheringMethod , 
   paletteFlags , 
   palette  
) 

Parameters

mode
Flags which control the behavior of the command.

bitsPerPixel
The number of bits per pixel to for the conversion. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 24, 32, 48 and 64.

order
The desired color order for the conversion.

ditheringMethod
Dithering options, useful only when the resulting image requires a palette (when it is 8 bits per pixel or less).

paletteFlags
Palette options, useful only when the resulting image requires a palette (when it is 8 bits per pixel or less).

palette
The palette used when converting the image if paletteFlags includes the ColorResolutionCommandPaletteFlags.UsePalette flag.

Example

For an example, refer to ColorResolutionCommand

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly