📄 ibgdpixmap.h
字号:
/* last edit: Ilja Schmelzer -------------- 11-OCT-1994 11:36:08.50 */
/************************************************************************/
/* */
/* <<< I B G >>> - Intersection - Based Grid generation package */
/* */
/* Version 1.1 author: schmelzer@iaas-berlin.d400.de */
/* */
/* to be distributed under IBG license conditions (see "readme.ibg") */
/* */
/************************************************************************/
/* geometry description defined by a pixmap */
/* in ibgdpixmap.c only the following definitions will be used: */
#define ibgPixmapSegment(p,ix,iy) ((p).map[(ix)+(p).lx*(iy)])
#define ibgPixmapFree(p) free((p).map)
#define ibgPixmapLx(p) ((p).lx)
#define ibgPixmapLy(p) ((p).ly)
#define ibgPixmapAlloc(p) (p).map = malloc((p).lx * (p).ly)
/* So, the implementation of the pixmap can be easily replaced: */
typedef struct{
char *map; /* one byte per pixel */
int lx; /* pixel in x-direction */
int ly; /* pixel in y-direction */
}ibgPixmap;
#ifdef IBG_H
ibGeometry ibgdPixmap(ibgPixmap *px,
ibgFloat xmin, ibgFloat xmax,
ibgFloat ymin, ibgFloat ymax);
/*
(xmin,ymin) has the segment ibgPixmapSegment(0,0)
(xmax,ymax) has the segment ibgPixmapSegment(lx-1,ly-1)
*/
#endif
#ifdef IBGOUTPUT_H
int ibgdPixmapRead(ibgPixmap *p, int *colors, ibgColor *colmap, char *fname);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -