API Reference > Classes > PRC Graphical Classes > OdPrcArrayRgba Class > OdPrcArrayRgba Methods > OdPrcArrayRgba::setNumOfColors Method
OdPrcArrayRgba::setNumOfColors Method
Syntax
C++
void setNumOfColors(OdUInt32 num, bool is_rgba);
Parameters 
Description 
OdUInt32 num 
[in] A new size of the color array to be set.  
bool is_rgba 
[in] A new value of the RGBA flag.
RGBA flag determines whether all colors in the array are RGBA (if true) or RGB (if false) colors. 

Sets a new size of color array and new value of RGBA flag. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.