LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

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






Flags which control the behavior of the command.
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.
The desired color order for the conversion.
Dithering options, useful only when the resulting image requires a palette (when it is 8 bits per pixel or less).
Palette options, useful only when the resulting image requires a palette (when it is 8 bits per pixel or less).
The palette used when converting the image if paletteFlags includes the ColorResolutionCommandPaletteFlags.UsePalette flag.
Initializes a new instance of the ColorResolutionCommand class with explicit parameters. .NET support Silverlight support WinRT support
Syntax
'Declaration
 
Public Function New( _
   ByVal mode As ColorResolutionCommandMode, _
   ByVal bitsPerPixel As Integer, _
   ByVal order As RasterByteOrder, _
   ByVal ditheringMethod As RasterDitheringMethod, _
   ByVal paletteFlags As ColorResolutionCommandPaletteFlags, _
   ByVal palette() As RasterColor _
)
'Usage
 
Dim mode As ColorResolutionCommandMode
Dim bitsPerPixel As Integer
Dim order As RasterByteOrder
Dim ditheringMethod As RasterDitheringMethod
Dim paletteFlags As ColorResolutionCommandPaletteFlags
Dim palette() As RasterColor
 
Dim instance As New ColorResolutionCommand(mode, bitsPerPixel, order, ditheringMethod, paletteFlags, 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: 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

See Also

Reference

ColorResolutionCommand Class
ColorResolutionCommand Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.