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


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
public NumberOfColors {get; set;}
public function get,set NumberOfColors :
Managed Extensions for C++ 
public: __property get_NumberOfColors();
public: __property void set_NumberOfColors( value
property NumberOfColors { get();
   void set ( value);


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


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.