当前位置:编程学习 > 网站相关 >>

Creo二次开发--函数--与颜色有关的函数

与颜色有关的几个函数
typedef enum
{
      PRO_COLOR_UNDEFINED = PRO_VALUE_UNUSED,
      PRO_COLOR_LETTER  = 0,
      PRO_COLOR_HIGHLITE = 1,
      PRO_COLOR_DRAWING  = 2,
      PRO_COLOR_BACKGROUND  = 3,
      PRO_COLOR_HALF_TONE = 4,
      PRO_COLOR_EDGE_HIGHLIGHT = 5,
      PRO_COLOR_DIMMED  = 6,
      PRO_COLOR_ERROR  = 8,
      PRO_COLOR_WARNING  = 9,
      PRO_COLOR_SHEETMETAL      = 10,
      PRO_COLOR_CURVE           = 12,
      PRO_COLOR_PRESEL_HIGHLIGHT = 18,
      PRO_COLOR_SELECTED = 19,
      PRO_COLOR_SECONDARY_SELECTED = 20,
      PRO_COLOR_PREVIEW_GEOM = 21,
      PRO_COLOR_SECONDARY_PREVIEW = 22,
      PRO_COLOR_DATUM = 23,
      PRO_COLOR_QUILT = 24,
      PRO_COLOR_LWW = 25,
      PRO_COLOR_MAX                     /* maximum color value */
} ProColortype;
typedef struct pro_color_map
{
 double  red;          /* percentage of red from 0.0 to 1.0     */
 double  green;        /* percentage of green from 0.0 to 1.0   */
 double  blue;         /* percentage of blue from 0.0 to 1.0    */
} ProColormap;
#include <ProColor.h> 
/*通过color设置color_type*/
ProError ProColormapSet (ProColortype color_type,ProColormap* color) ;
/*获取系统设置的color_type的color*/
ProError ProColormapGet (ProColortype color_type,ProColormap* color) ;
typedef enum
{
    PRO_COLORMAP_STANDARD = 0,
    PRO_COLORMAP_PRE_WILDFIRE = 1
} ProColormapVersion;
ProError ProColormapVersionGet ( ProColormapVersion* current_version );获取当前的Colormap的版本。
ProError ProColormapVersionSet ( ProColormapVersion current_version );设置当前的Colormap的版本。
补充:综合编程 , 其他综合 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,