ImageMan.Net Version 3 Summer 2012 Release
NumberOfColors Property
See Also  Send Feedback
DTI.ImageMan.Commands Namespace > ModifyBitDepthCommand Class : NumberOfColors Property





Glossary Item Box

Gets or Sets the desired number of colors in the output image

Syntax

Visual Basic (Declaration) 
Public Property NumberOfColors As System.Integer
Visual Basic (Usage)Copy Code
Dim instance As ModifyBitDepthCommand
Dim value As System.Integer
 
instance.NumberOfColors = value
 
value = instance.NumberOfColors
C# 
public System.int NumberOfColors {get; set;}
JScript 
public function get,set NumberOfColors : System.int
Managed Extensions for C++ 
public: __property System.int get_NumberOfColors();
public: __property void set_NumberOfColors( 
   System.int value
);
C++/CLI 
public:
property System.int NumberOfColors {
   System.int get();
   void set (    System.int value);
}

Remarks

The desired bit depth can be specified with the bit depth property or by using the pixel format property or by specifying the number of colors. Will set closest associated BitDepth as well Unless PaletteOption is Custom

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

© 2014 Data Techniques, Inc. All Rights Reserved.