⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wshades.h

📁 BCView - Bayes Classifier Visualization Download xbcview Linux executable (218 kb) wbcview.exe W
💻 H
字号:
/*----------------------------------------------------------------------  File    : wshades.h  Contents: Windows functions for color and grey shades allocation  Author  : Christian Borgelt  History : 27.01.2000 file created            30.01.2000 definition of SHD_MAXCNT added----------------------------------------------------------------------*/#ifndef __WSHADES__#define __WSHADES__#include <windows.h>/*----------------------------------------------------------------------  Preprocessor Definitions----------------------------------------------------------------------*/#define SHD_BLACK    0          /* shade from black */#define SHD_WHITE    1          /* shade from white */#define SHD_MAXCNT  256         /* maximum number of shades *//*----------------------------------------------------------------------  Type Definitions----------------------------------------------------------------------*/typedef COLORREF PIXEL;         /* --- pixel --- */typedef struct {                /* --- shades --- */  double coloff;                /* color offset (in degrees) */  int    colcnt;                /* number of colors */  int    shdbase;               /* shade base (SHD_BLACK/SHD_WHITE) */  int    shdcnt;                /* number of shades per color */  PIXEL  *pixels[1];            /* RGB values of color shades */} SHADES;                       /* (shades) *//*----------------------------------------------------------------------  Functions----------------------------------------------------------------------*/extern SHADES* shd_create  (double coloff, int colcnt,                            int shdbase,   int shdcnt);extern void    shd_delete  (SHADES *shds);extern double  shd_coloff  (SHADES *shds);extern int     shd_colcnt  (SHADES *shds);extern int     shd_shdbase (SHADES *shds);extern int     shd_shdcnt  (SHADES *shds);extern PIXEL   shd_pixel   (SHADES *shds, int color, int shade);#ifndef NDEBUGextern void    shd_show    (SHADES *shds);#endif/*----------------------------------------------------------------------  Preprocessor Definitions----------------------------------------------------------------------*/#define shd_coloff(s)     ((s)->coloff)#define shd_colcnt(s)     ((s)->colcnt)#define shd_shdbase(s)    ((s)->shdbase)#define shd_shdcnt(s)     ((s)->shdcnt)#define shd_pixel(t,c,s)  ((t)->pixels[c][s])#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -