AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
ColorLookupTable (double minVal, double maxVal) | |
double | GetMinValue () |
void | SetMinValue (double val) |
double | GetMaxValue () |
void | SetMaxValue (double val) |
long | GetColorNumber () |
void | SetColorNumber (long val) |
Vec3List | GetColorTable () |
ColorMapKeyword | GetColorMap () |
void | SetColorMap (ColorMapKeyword keyword) |
double | GetValueRange () |
Vector3 | GetColor (double alpha) |
MemoryImage | CreateImage () |
Float32Buffer | ComputeColors (DoubleList data, double scale) |
<> ColorLookupTable
定义颜色查找表,设置最小值和最大值,默认颜色数为32
Float32Buffer ColorLookupTable.ComputeColors | ( | DoubleList | data, |
double | scale ) |
批量计算颜色
data | 数值列表 |
scale | 缩放值 |
MemoryImage ColorLookupTable.CreateImage | ( | ) |
创建颜色表的位图图片
Vector3 ColorLookupTable.GetColor | ( | double | alpha | ) |
根据数值查找颜色
alpha | 数值 |
double ColorLookupTable.GetValueRange | ( | ) |
数值范围
void ColorLookupTable.SetColorMap | ( | ColorMapKeyword | keyword | ) |
设置颜色样式
keyword | 颜色样式表 |