/************************************************************************* * Auto-Pro functions and structures definitions. * * IMPORTANT: this file is parsed to generate IPBASIC.DLL. Only use * variables types that are defined in the AWK script. Use short instead * of int, LPVOID or LPSHORT instead of void far * or short far *. * *************************************************************************/ #include "ipcerr.h" #ifndef _INC_IPCHEADER #define _INC_IPCHEADER #ifdef __cplusplus extern "C" { /* Assume C declarations for C++ */ #endif /* __cplusplus */ #if defined(_WIN32) #define far #endif /*----------------------------------------------------------------- | windows defininition |------------------------------------------------------------------*/ #if !defined(_INC_WINDOWS) && !defined(_WINDOWS_) typedef struct { int left, top, right, bottom; } RECT, far * LPRECT; typedef struct { int x, y; } POINT, far * LPPOINT; #endif /* _INC_WINDOWS */ /*----------------------------------------------------------------- | HIL definitions |------------------------------------------------------------------*/ #if !defined(_INC_HIL) typedef float _far * LPFLOAT; typedef double _far * LPDOUBLE; typedef void _far * HPVOID; typedef LPBYTE _far * LPLPBYTE; typedef BOOL _far * LPBOOL; typedef short _far * LPSHORT; #define IMC_BILEVEL 0 #define IMC_GRAY 1 #define IMC_PALETTE 2 #define IMC_RGB 3 #define IMC_GRAY12 4 #define IMC_FLOAT 5 #define IMC_GRAY16 6 #define OR_LEFTRIGHT 1 #define OR_UPDOWN 2 #define OR_TRANSPOSE 3 #define OR_ROTATE90 4 #define OR_ROTATE270 5 #define OR_ROTATE180 6 #define RA_CENTER 5 #define EQ_BESTFIT 0 #define EQ_LINEAR 1 #define EQ_BELL 2 #define EQ_LOGARITHMIC 3 #define EQ_EXPONENTIAL 4 #define EQ_WHITEBAL 5 #define IFFCOMP_NONE 0 #define IFFCOMP_DEFAULT 1 #define IFFCOMP_RLE 2 #define IFFCOMP_CCITT1D 3 #define IFFCOMP_CCITTG3 4 #define IFFCOMP_CCITTG4 5 #define IFFCOMP_LZW 6 #define IFFCOMP_LZWHPRED 7 #define IFFCOMP_JPEG 8 #define IFFCL_BILEVEL 0 #define IFFCL_GRAY 1 #define IFFCL_PALETTE 2 #define IFFCL_RGB 3 #define IFFCL_RGBPLANAR 4 #define IFFCL_RGBA 5 #define IFFCL_RGBAPLANAR 6 /* IpDocOpen() */ #define IMA_RD 1 #define IMA_RDWR 2 #endif /* _INC_HIL */ /*----------------------------------------------------------------- | HAIL definitions |------------------------------------------------------------------*/ #if !defined(_INC_HAIL) #define CM_RGB 0 #define CM_HSI 1 #define CM_HSV 2 #define CM_YIQ 3 #define BLBM_ALL -1 #define BLBM_AREA 0 #define BLBM_ASPECT 1 #define BLBM_BOX_AREA 2 #define BLBM_BOX_XY 3 #define BLBM_CENTRX 4 #define BLBM_CENTRY 5 #define BLBM_DENSITY 6 #define BLBM_DIRECTION 7 #define BLBM_HOLEAREA 8 #define BLBM_HOLEAREARATIO 9 #define BLBM_MAJORAX 10 #define BLBM_MINORAX 11 #define BLBM_MAXFERRET 12 #define BLBM_MINFERRET 13 #define BLBM_MEANFERRET 14 #define BLBM_MAXRADIUS 15 #define BLBM_MINRADIUS 16 #define BLBM_NUMHOLES 17 #define BLBM_PERIMETER 18 #define BLBM_RADIUSRATIO 19 #define BLBM_ROUNDNESS 20 #define BLBM_CLUSTER 21 #define BLBM_RED 22 #define BLBM_GREEN 23 #define BLBM_BLUE 24 #define BLBM_PERAREA 25 #define BLBM_CLASS 26 #define BLBM_LENGTH 27 #define BLBM_WIDTH 28 #define BLBM_PERIMETER2 29 #define BLBM_IOD 30 #define OPA_ADD 0 #define OPA_SUB 1 #define OPA_DIFF 2 #define OPA_MULT 3 #define OPA_DIV 4 #define OPA_AVG 5 #define OPA_MAX 6 #define OPA_MIN 7 /* 8 is reserved for internal use */ #define OPA_ACC 9 #define OPL_AND 0 #define OPL_OR 1 #define OPL_XOR 2 #define OPL_NAND 3 #define OPL_NOR 4 #define OPL_NOT 5 #define OPL_COPY 6 #define MORPHO_2x2SQUARE 0 #define MORPHO_3x1ROW 1 #define MORPHO_1x3COLUMN 2 #define MORPHO_3x3CROSS 3 #define MORPHO_5x5OCTAGON 4 #define MORPHO_CUSTOM 5 #define FFT_NOTCH 0x0000 #define FFT_PHASE 0x0001 #define FFT_SPECTRUM 0x0002 #define FFT_HANNING 0x1000 #endif /* _INC_HAIL */ /* IpFftForward. Uses FFT_PHASE and FFT_SPECTRUM above also */ #define FFT_PHASE32 0x0003 #define FFT_SPECTRUM32 0x0004 #define FFT_SPECPHAS32 0x0005 #define MORPHO_7x7OCTAGON 6 #define MORPHO_11x11OCTAGON 7 #define FFT_SOURCE -1 #define FFT_NEWIMAGE -2 #define FFT_NEWFLOAT -3 /*----------------------------------------------------------------- | IPWIN definitions |------------------------------------------------------------------*/ #define COLORMODEL 100 #define AUTOUPDATE 102 #define SCAL 103 #define ICAL 104 #define ACCUMULATE 105 #define LINETYPE 106 #define BIN 107 #define BRIGHTNESS 108 #define CONTRAST 109 #define GAMMA 110 #define STATISTICS 111 #define ORIGIN 112 #define GRID 113 #define REFERENCE 114 #define FREEZE 115 #define CURVE 116 #define UNIT 117 #define CHANNEL 118 #define CHANNEL1 120 #define CHANNEL2 121 #define CHANNEL3 122 #define ADVANCED 123 #define SETCURSEL 124 #define SEGMETHOD 125 #define SETTABS 126 #define LINEGEOMETRY 127 #define PROFTYPE_LINE 1016 #define PROFTYPE_CIRCLE 1017 #define PROFTYPE_FREEFORM 1018 #define BLOB_OUTLINEMODE 0 #define BLOB_OUTLINECOLOR 1 #define BLOB_LABELMODE 2 #define BLOB_LABELCOLOR 3 #define BLOB_SMOOTHING 4 #define BLOB_MINAREA 5 #define BLOB_FILLHOLES 6 #define BLOB_BRIGHTOBJ 8 #define BLOB_AUTORANGE 9 #define BLOB_MEASUREOBJECTS 10 #define BLOB_FILTEROBJECTS 11 #define BLOB_ADDCOUNT 12 #define BLOB_CLEANBORDER 13 #define BLOB_CONVEX 14 #define BLOB_8CONNECT 15 #define CM 0 #define INCHES 1 #define PIXELS 2 #define SEG_SELNEW 0 #define SEG_SELADD 1 #define SEG_SELSUBTRACT 2 #define SEG_HISTOGRAM 0 #define SEG_COLORCUBE 1 #define MASK_BILEVELNEW 0 #define MASK_FOREGROUND 1 #define MASK_BACKGROUND 2 #define MASK_BILEVELINPLACE 3 #define FILLCOLOR 0 #define FILLHUE 1 #define FILLTINT 2 #define FILLPATTERN 3 #define FILLTEXTURE 4 #define CLRFORE 0 #define CLRBACK 1 #define CLRWHITE 2 #define CLRBLACK 3 #define FRAME_NONE 0 #define FRAME_RECTANGLE 1 #define FRAME_ELLIPSE 2 #define FRAME_IRREGULAR 3 #define FRAME_INVIEW 10 #define THICKNORMAL 0 #define THICKHORZ 1 #define THICKVERT 2 #define THICKAVG 3 #define THICKSTDDEV 4 #define LUT_BRIGHTNESS 0 #define LUT_CONTRAST 1 #define LUT_GAMMA 2 #define LUT_HISHAD 3 #define LUT_4TONES 4 #define LUT_8TONES 5 #define LUT_FREEFORM 6 #define LUT_ALL 7 #define MEAS_STATS 0 #define MEAS_DISPCOLOR 1 #define MEAS_LABELCOLOR 2 #define MEAS_THICKMODE 3 #define MEAS_LENGTH 4 #define MEAS_AREA 5 #define MEAS_ANGLE 6 #define MEAS_TRACE 7 #define MEAS_THICK 8 #define MEAS_REPEAT 9 #define MEAS_ANGLE180 10 #define MEAS_CLICK 11 #define MEAS_TAG -2 #define MEAS_ALL -1 #define TAG_VIEW_COUNTS 0 #define TAG_VIEW_POINTS 1 #define TAG_VIEW_CLASSSTATS 2 #define TAG_VIEW_AREA 3 #define TAG_VIEW_LABEL 4 #define TAG_VIEW_MARKER 5 #define TAG_MEAS_XPOS 6 #define TAG_MEAS_YPOS 7 #define TAG_MEAS_INTENSITY 8 #define TAG_MEAS_CLASS 9 #define TAG_MEAS_RED 10 #define TAG_MEAS_GREEN 11 #define TAG_MEAS_BLUE 12 #define TAG_MEAS_AREA 13 #define TAG_MEAS_RADIUS 14 #define AOIDELETE 0 #define AOIADD 1 #define AOISET 2 #define AOISHOWDLG 3 #define AOIHIDEDLG 4 #define AOILOAD 5 #define AOISAVE 6 #if defined(WIN32) #define IPCFUNC IPCERROR WINAPI #else #define IPCFUNC IPCERROR WINAPI _export #endif #define DOCSEL_NEXTID -1 #define DOCSEL_PREVID -2 #define DOCSEL_ACTIVE -3 #define DOCSEL_ALL -4 #define DOCSEL_NONE -5 #define GET_VALUE 0 #define SET_VALUE 1 /* IpAppArrange() */ #define DOCS_CASCADE 0 #define DOCS_TILE 1 #define DOCS_OVERLAP 2 /* IpAcqSnap() */ #define ACQ_NEW -1 #define ACQ_CURRENT -2 #define ACQ_FILE -3 #define ACQ_SEQUENCE -4 /* IpAppRun() */ #define RUN_NORMAL 5 /* SW_SHOW */ #define RUN_MINIMIZED 2 /* SW_SHOWMINIMIZED */ #define RUN_MAXIMIZED 3 /* SW_SHOWMAXIMIZED */ #define RUN_AUTOCLOSE 1 #define RUN_MODAL 2 /* IpHstSave(), IpProfSave(), IpBlbSave...(), ... */ #define S_APPEND 0x0001 #define S_NEW 0x0001 /* used with S_RECORD */ #define S_STATS 0x0002 #define S_DATA 0x0004 #define S_RANGE 0x0008 #define S_CLIPBOARD 0x0010 #define S_OUTPUT 0x0020 #define S_HEADER 0x0100 #define S_LEGEND 0x0200 #define S_X_AXIS 0x0400 #define S_Y_AXIS 0x0800 #define S_DDE 0x1000 #define S_RECORD 0x2000 /* IpAppMenuSelect() */ #define MENU_ID 1 #define MENU_NAME 2 #define MENU_COORD 4 #define MENU_DLL 8 #define DLG_MENU_ID 16 #define DLG_MENU_NAME 32 #define DLG_MENU_COORD 64 /* IpAppWindow() */ #define APW_GETNAME 0 #define APW_GETID 1 #define APW_GETHWND 2 #define APW_ACTIVATENAME 3 #define APW_ACTIVATEID 4 #define APW_ACTIVATEHWND 5 /* IpAppCtl() */ #define APC_GETHWND 1 #define APC_CLICK 2 #define APC_GETFOCUSID 3 #define APC_SETFOCUSID 4 #define APC_GETCHECK 5 #define APC_SETCHECK 6 #define APC_GETSCROLL 7 #define APC_SETSCROLL 8 #define APC_GETCURSEL 9 #define APC_SETCURSEL 10 #define APC_SETPOSX 11 #define APC_SETPOSY 12 /* IpAppWndState() */ #define WST_ENABLED 0x0001 #define WST_VISIBLE 0x0002 #define WST_NORMAL 0x0004 #define WST_MINIMIZED 0x0008 #define WST_MAXIMIZED 0x0010 /* IpWsLoadRes() */ #define LOAD_PROMPT -1 #define LOAD_SMALLEST -3 /* IpPrtSize() */ #define PRT_ACTUAL 1 #define PRT_FIT 2 #define PRT_DISTORT 3 /* IpDocGet() and IpWsChangeDescription() */ #define GETACTDOC 1 #define GETDOCWND 2 #define GETDOCVRI 3 #define GETAPPWND 4 #define GETNUMDOC 5 #define GETDOCLST 6 #define GETDOCINFO 7 #define GETINSTINFO 8 #define GETPLUGSN 9 #define GETAPPDIR 10 #define INF_SUBJECT 19 #define INF_TITLE 20 #define INF_ARTIST 21 #define INF_DATE 22 #define INF_DESCRIPTION 23 #define INF_DPIX 24 #define INF_DPIY 25 #define INF_RANGE 26 #define INF_NAME 27 #define INF_MAXRANGE 28 /* IpBlbGet() */ #define GETNUMOBJ 1 /* tag == 0 or class number; wParam == 1 for visible, 0 for all */ #define GETHBLOB 2 #define GETTHRESH 3 #define GETNUMRANGES 4 /* IpWsCreateFromVri() */ #define VRI_SHARE 0 #define VRI_COPY 1 #define VRI_NODELETE 2 /* IpMacroStop() */ #define MS_MODAL 0x0001 #define MS_YESNO 0x0010 #define MS_OKCAN 0x0020 #define MS_YESNOCAN 0x0040 #define MS_STOP 0x0100 #define MS_EXCLAM 0x0200 #define MS_QUEST 0x0400 #define MS_DEF2 0x0800 #define MS_DEF3 0x1000 /* IpBitAttr() */ #define BIT_SAMPLE 1 #define BIT_SAVEALL 2 #define BIT_CALIB 3 /* IpSortAttr() */ #define SORT_ROTATE 1 #define SORT_MEAS 2 #define SORT_LABELS 3 #define SORT_COLOR 4 #define SORT_INDEX 5 #define SORT_AUTO 6 /* IpRegister() */ #if !defined(_INC_HAIL) #define AFF_CLIP 0x0001 #define AFF_AOI 0x0002 #define AFF_NOBILINEAR 0x0004 #define AFF_FLOAT 0x0008 #define AFF_NOTILT 0x0010 #define AFF_NOSCALE 0x0020 #endif /* IpAoiGet() */ #if !defined(_INC_HAIL) #define AOI_BOX 1 #define AOI_ELLIPSE 3 #define AOI_POLYGON 5 #endif /* used by various query functions */ #define GETNUMPTS 100 #define GETBOUNDS 101 #define GETPOINTS 102 #define GETSTATS 103 #define GETVALUES 104 #define GETRANGE 105 #define GETTYPE 106 #define GETSTATUS 107 #define GETLABEL 108 #define GETINDEX 109 #define GETHIT 110 #define GETNUMCLASS 111 /* IpTrackBar() */ #define TBOPEN 1 #define TBUPDATE 2 #define TBCLOSE 3 /* IpDocGetLine, IpDocGetArea */ #define CPROG 0x2000 #define USEAOI 0x1000 /* IpDocGet */ typedef struct { short Width; short Height; short Class; short Bpp; RECT Extent; } IPDOCINFO; /* IpAcqShow */ #define ACQ_SNAP 1 #define ACQ_AVG 2 #define ACQ_TIMED 3 #define ACQ_MULTI 4 #define ACQ_LIVE 5 /* IpIniFile */ #define GETINT 1 #define GETFLOAT 2 #define GETSTRING 3 #define SETINT 5 #define SETFLOAT 6 #define SETSTRING 7 /* IpCalSaveEx */ #define NONAME 1 #define NOSYSTEM 2 /* IpAnotAttr() */ #define DRAW_FILLCOLOR 0 #define DRAW_LINECOLOR 1 #define DRAW_LINEWIDTH 2 #define DRAW_THINLINE 0 #define DRAW_THICKLINE 1 /* IpFltLocHistEq() */ #define LOCEQ_LINEAR 1 #define LOCEQ_BELL 2 #define LOCEQ_LOG 3 #define LOCEQ_EXP 4 #define LOCEQ_BESTFIT 5 #define LOCEQ_STDDEV 6 /* IpFltDistance */ #define DISTANCE_SQUARE 0 #define DISTANCE_DIAGONAL 1 /* IpFltReduce */ #define REDUCE_4NEIGHBOR 2 #define REDUCE_8NEIGHBOR 0 /* IpAnotLine() */ #define DRAW_PLAINLINE 0 #define DRAW_SMALLARROWRIGHT 1 #define DRAW_SMALLARROWBOTH 2 #define DRAW_SMALLARROWLEFT 3 #define DRAW_LARGEARROWRIGHT 4 #define DRAW_LARGEARROWLEFT 5 #define DRAW_LARGEARROWBOTH 6 #define DRAW_CIRCLEARROW 7 #define DRAW_ARROWCIRCLE 8 #define DRAW_DIAMONDBOTH 9 #define DRAW_CIRCLEBOTH 10 /* Plot and overlay definitions */ #define PDT_INT16 0 #define PDT_WORD16 1 #define PDT_INT32 2 #define PDT_WORD32 3 #define PDT_FLOAT 4 #define PDT_DFLOAT 5 #define ATT_FIXED 0x8000 #define ATT_NOCOPY 0x4000 #define ATT_FIXEDX 0x2000 #define ATT_FIXEDY 0x1000 #define ATT_CONTROLS 0x0800 #define SETHWNDMESSAGE 1 #define GETEDITPOINT 1 #define GETCURPOS 2 #define RECTANGLE -10 /* constants for IpPlot... functions */ #define XAXIS 0 #define YAXIS 1 #define GETGRAPH 1 #define GETHWND 2 #define SETPARENT 3 #define SETNOTIFY 4 #define RGE_FIXED 0 #define RGE_AUTO 1 #define RGE_FIXEDMIN 2 #define RGE_FIXEDMAX 3 /*----------------------------------------------------------------- | Pre-defined variables |------------------------------------------------------------------*/ #define IPC_SIZECLASSIFIERS 3 #define IPC_SIZEICAL 256 * 2 extern RECT ipRect; extern POINT Pts[2048]; extern short Lut[256]; extern float ipBins[16]; extern short ipClassifiers[IPC_SIZECLASSIFIERS]; extern float ipICal[IPC_SIZEICAL]; extern short ipHalfTypes[7]; extern short ipHalfScreens[7]; extern long ret; /*----------------------------------------------------------------- | Video acquisition |------------------------------------------------------------------*/ IPCFUNC IpAcqAverage(short Frames, short Divider); IPCFUNC IpAcqSnap(short dest); IPCFUNC IpAcqTimed(LPSTR Dir, LPSTR Prefix, short StartNumber, short Frames, long Interval); IPCFUNC IpAcqShow(short wDialog, short bShow); /*----------------------------------------------------------------- | Aoi manager functions |------------------------------------------------------------------*/ IPCFUNC IpAoiCreateBox(LPRECT ipRect); IPCFUNC IpAoiCreateEllipse(LPRECT ipRect); IPCFUNC IpAoiCreateIrregular(LPPOINT ipAoiPoint, short NumPoints); IPCFUNC IpAoiShow(short FrameType); IPCFUNC IpAoiManager(short FuncID, LPSTR Name); IPCFUNC IpAoiChangeName(LPSTR oldName, LPSTR newName); IPCFUNC IpAoiMove(short deltax, short deltay); IPCFUNC IpAoiValidate(void); IPCFUNC IpAoiGet(short Command, short wParam, LPVOID lpParam); IPCFUNC IpAoiMultAppend(short append); IPCFUNC IpAoiMultShow(short yesNo); /*----------------------------------------------------------------- | Application functions |------------------------------------------------------------------*/ IPCFUNC IpAppArrange(short mode); IPCFUNC IpAppCloseAll(void); IPCFUNC IpAppExit(void); IPCFUNC IpAppMaximize(void); IPCFUNC IpAppMinimize(void); IPCFUNC IpAppMove(short x, short y); IPCFUNC IpAppRestore(void); IPCFUNC IpAppSelectDoc(short DocId); IPCFUNC IpAppSize(short Width, short Height); IPCFUNC IpAppUpdateDoc(short DocId); IPCFUNC IpAppHide(short hide); IPCFUNC IpAppRun(LPSTR CommandLine, short mode, short AutoClose); IPCFUNC IpAppGet(short Command, short wParam, LPVOID lpParam); IPCFUNC IpAppMenuSelect(short Id1, short Id2, LPSTR ItemName, short mode); IPCFUNC IpAppWindow(LPSTR WindowName, LPVOID WindowParam, short Mode); IPCFUNC IpAppCtl(LPSTR CtlName, short ParamCmd, LPVOID lpParamValue); IPCFUNC IpAppWndPos(LPSTR WindowName, LPRECT lpRect, short Mode); IPCFUNC IpAppWndState(LPSTR WindowName, LPVOID theState, short Mode); IPCFUNC IpAppCtlText(LPSTR ControlName, LPSTR Caption, short Mode); /*----------------------------------------------------------------- | Blob manager functions BLOBDLG.DLL |------------------------------------------------------------------*/ IPCFUNC IpBlbCount(void); IPCFUNC IpBlbDelete(void); IPCFUNC IpBlbEnableMeas(short MeasurementType, short bEnable); IPCFUNC IpBlbLoadOutline(LPSTR OutlineFile); IPCFUNC IpBlbLoadSetting(LPSTR SettingFile); IPCFUNC IpBlbSaveData(LPSTR DataFile, short append); IPCFUNC IpBlbSaveOutline(LPSTR OutlineFile); IPCFUNC IpBlbSaveSetting(LPSTR SettingFile); IPCFUNC IpBlbSetAttr(short Attrib, short Value); IPCFUNC IpBlbSetRange(short Start, short End); IPCFUNC IpBlbShow(short bShow); IPCFUNC IpBlbShowAutoClass(LPSHORT ipClassifiers, short NumMeas, short NumClasses, short bIterate, short bShow); IPCFUNC IpBlbShowCluster(short bShow); IPCFUNC IpBlbShowData(short bShow); IPCFUNC IpBlbShowHistogram(short Measure, short Bins, short bShow); IPCFUNC IpBlbShowObjectWindow(short bShow); IPCFUNC IpBlbShowScattergram(short Measure1, short Measure2, short bShow); IPCFUNC IpBlbShowSingleClass(short NumMeasurements, LPFLOAT ipBins, short NumClasses, short bShow); IPCFUNC IpBlbShowStatistics(short bShow); IPCFUNC IpBlbSplitObjects(short bWatershed); IPCFUNC IpBlbUpdate(short bRedrawImage); IPCFUNC IpBlbRemoveHoles(void); IPCFUNC IpBlbSmoothObjects(short smoothing); IPCFUNC IpBlbSavePopDensities(LPSTR DataFile, short append); IPCFUNC IpBlbSaveClasses(LPSTR DataFile, short append); IPCFUNC IpBlbShowPopDens(LPSTR OutlineFile, short bShow); IPCFUNC IpBlbMeasure(void); IPCFUNC IpBlbFilter(void); IPCFUNC IpBlbSetFilterRange(short MeasurementType, float min, float max); IPCFUNC IpBlbData(short Measure, short fromObj, short toObj, LPFLOAT values); IPCFUNC IpBlbGet(short Command, short tag, short wParam, LPVOID lpParam); IPCFUNC IpBlbCreateMask(void); IPCFUNC IpBlbMultiRanges(LPFLOAT intRanges, short numranges); IPCFUNC IpBlbRange(short rangeid); /*----------------------------------------------------------------- | calibration functions |------------------------------------------------------------------*/ IPCFUNC IpCalLoad(LPSTR FileName); IPCFUNC IpCalSave(LPSTR FileName); IPCFUNC IpCalSaveAll(LPSTR FileName); IPCFUNC IpCalSaveEx(LPSTR FileName, short docid, short mode); IPCFUNC IpCalGet(LPSTR szInput, LPSTR szOutput); IPCFUNC IpICalCreate(void); IPCFUNC IpICalDestroy(void); IPCFUNC IpICalMove(short x, short y); IPCFUNC IpICalReset(void); IPCFUNC IpICalSelect(LPSTR szICal); IPCFUNC IpICalSetName(LPSTR szICal); IPCFUNC IpICalSetOptDens(float BlackLevel, float IncidentLevel); IPCFUNC IpICalSetPoints(LPFLOAT ipICalPoints, short NumPoints, short fitmode); IPCFUNC IpICalSetSamples(short NumSamples); IPCFUNC IpICalSetUnitName(LPSTR UnitName); IPCFUNC IpICalShow(short bShow); IPCFUNC IpICalShowFormat(short bOptDens); IPCFUNC IpICalLinearize(short bNewImage, short bInverse, short bScale); IPCFUNC IpSCalCreate(void); IPCFUNC IpSCalDestroy(void); IPCFUNC IpSCalMove(short x, short y); IPCFUNC IpSCalReset(void); IPCFUNC IpSCalSelect(LPSTR szSCal); IPCFUNC IpSCalSetAngle(float Angle); IPCFUNC IpSCalSetAspect(float AspectRatio); IPCFUNC IpSCalSetName(LPSTR szSCal); IPCFUNC IpSCalSetOrigin(float x, float y); IPCFUNC IpSCalSetUnit(float x, float y); IPCFUNC IpSCalSetUnitName(LPSTR UnitName); IPCFUNC IpSCalShow(short bShow); /*----------------------------------------------------------------- | Screen capture |------------------------------------------------------------------*/ IPCFUNC IpCapArea(LPRECT ipRect, short bCursor); IPCFUNC IpCapFile(LPSTR FileFormat, LPSTR Directory, LPSTR Prefix, short Number); IPCFUNC IpCapHotKey(LPSTR KeyName, short bShift, short bCtrl, short bAlt); IPCFUNC IpCapWindow(LPSTR Title, short bClientOnly, short bCursor); /*----------------------------------------------------------------- | COLORDLG.DLL - Color Transformation Functions |------------------------------------------------------------------*/ IPCFUNC IpCmChannelExtract(short cmColor, short cmComp, short Channel); IPCFUNC IpCmChannelMerge(short WsId, short cmColor, short Channel); IPCFUNC IpCmTransform(short cmOut, short cmIn, short bNewImage); IPCFUNC IpCmChannelMerge3(short WsIdDest, short WsIdChannel1, short WsIdChannel2, short WsIdChannel3, short cmColor, short bNewImage); /*----------------------------------------------------------------- | Document window functions |------------------------------------------------------------------*/ IPCFUNC IpDocClose(void); IPCFUNC IpDocMaximize(void); IPCFUNC IpDocMinimize(void); IPCFUNC IpDocMove(short x, short y); IPCFUNC IpDocRestore(void); IPCFUNC IpDocSize(short Width, short Height); IPCFUNC IpDocGet(short Command, short wParam, LPVOID lpParam); IPCFUNC IpDocOpenVri(short DocId, short oMode, LPRECT oExtent); IPCFUNC IpDocOpenAoi(short DocId, short oMode); IPCFUNC IpDocCloseVri(long iiInst); IPCFUNC IpDocGetLine(long iiInst, short LineNum, LPVOID LineBuf); IPCFUNC IpDocPutLine(long iiInst, short LineNum, LPVOID LineBuf, short bAOI); IPCFUNC IpDocGetArea(short DocId, LPRECT rArea, LPVOID lpBuf, short gMode); IPCFUNC IpDocPutArea(short DocId, LPRECT rArea, LPVOID lpBuf, short pMode); IPCFUNC IpDocClick(LPSTR Message, LPPOINT CurPos); IPCFUNC IpDocFind(LPSTR WorkspaceName); IPCFUNC IpDocCloseEx(short DocId); /*----------------------------------------------------------------- | FFTDLG.DLL - Fast Fourier Transform functions |------------------------------------------------------------------*/ IPCFUNC IpFftForward(short DisplayType, short bFullFft); IPCFUNC IpFftHiPass(short Type, short Transition, short PreserveNil); IPCFUNC IpFftInverse(short WsId, short PreserveData); IPCFUNC IpFftLoad(LPSTR FileName); IPCFUNC IpFftLoPass(short Type, short Transition); IPCFUNC IpFftSave(LPSTR FileName); IPCFUNC IpFftSpikeCut(short Type, short Transition, short Symmetrical); IPCFUNC IpFftSpikeBoost(short Type, short Transition, short Symmetrical); IPCFUNC IpFftShow(short bShow); IPCFUNC IpFftTag(short docid, short Type, short sourceClass); /*----------------------------------------------------------------- | FILTRDLG.DLL - Spatial filtering |------------------------------------------------------------------*/ IPCFUNC IpFltClose(short Shape, short Passes); IPCFUNC IpFltConvolveKernel(LPSTR KernelName, short Strength, short Passes); IPCFUNC IpFltDilate(short Shape, short Passes); IPCFUNC IpFltErode(short Shape, short Passes); IPCFUNC IpFltExtractBkgnd(short BrightOnDark, short ObjectSize); IPCFUNC IpFltFlatten(short BrightOnDark, short ObjectSize); IPCFUNC IpFltHiPass(short sSize, short Strength, short Passes); IPCFUNC IpFltLaplacian(short sSize, short Strength, short Passes); IPCFUNC IpFltLoPass(short sSize, short Strength, short Passes); IPCFUNC IpFltMedian(short sSize, short Passes); IPCFUNC IpFltOpen(short Shape, short Passes); IPCFUNC IpFltPhase(void); IPCFUNC IpFltRoberts(void); IPCFUNC IpFltSharpen(short sSize, short Strength, short Passes); IPCFUNC IpFltSobel(void); IPCFUNC IpFltThin(short Threshold); IPCFUNC IpFltWatershed(short Threshold); IPCFUNC IpFltShow(short bShow); IPCFUNC IpFltVariance(short sizex, short sizey); IPCFUNC IpFltPrune(short Threshold, short Passes); IPCFUNC IpFltUserErode(LPSTR KernelName, short Passes); IPCFUNC IpFltUserDilate(LPSTR KernelName, short Passes); IPCFUNC IpFltLocHistEq(short WinSize, short Step, short EqType, float StdDev); IPCFUNC IpFltDistance(short Threshold, short Mode); IPCFUNC IpFltReduce(short Threshold, short Mode); IPCFUNC IpFltGauss(short sSize, short Strength, short Passes); /*----------------------------------------------------------------- | Gallery |------------------------------------------------------------------*/ IPCFUNC IpGalAdd(LPSTR FileName); IPCFUNC IpGalChangeDescription(short DescriptionType, LPSTR Description); IPCFUNC IpGalDelete(LPSTR GalleryName); IPCFUNC IpGalNew(LPSTR FileName); IPCFUNC IpGalOpen(LPSTR FileName); IPCFUNC IpGalOpenPhotoCD(LPSTR DriveLetter, LPSTR GalleryName, short Resolution); IPCFUNC IpGalRemove(short bFromDisk); IPCFUNC IpGalSetActive(short GalId); IPCFUNC IpGalShow(short bShow); IPCFUNC IpGalSort(short bByName, short bAscending); IPCFUNC IpGalTag(short SlotNumber, short bTag); IPCFUNC IpGalUpdate(void); IPCFUNC IpGalImageOpen(short imageId); IPCFUNC IpGalClose(void); /*----------------------------------------------------------------- | HISTO.DLL - histogram functions |------------------------------------------------------------------*/ IPCFUNC IpHstEqualize(short Method); IPCFUNC IpHstCreate(void); IPCFUNC IpHstDestroy(void); IPCFUNC IpHstMaximize(void); IPCFUNC IpHstMinimize(void); IPCFUNC IpHstMove(short x, short y); IPCFUNC IpHstRestore(void); IPCFUNC IpHstSave(LPSTR FileName, short bAppend); IPCFUNC IpHstScale(short bVert, short bAuto, float From, float End); IPCFUNC IpHstSelect(short HstId); IPCFUNC IpHstSetAttr(short AttrType, short AttrValue); IPCFUNC IpHstSize(short cx, short cy); IPCFUNC IpHstUpdate(void); IPCFUNC IpHstGet(short Command, short wParam, LPVOID lpParam); /*----------------------------------------------------------------- | Lookup Table |------------------------------------------------------------------*/ IPCFUNC IpLutApply(void); IPCFUNC IpLutBinarize(short MinRange, short MaxRange, short WhiteOnBlack); IPCFUNC IpLutLoad(LPSTR FileName); IPCFUNC IpLutReset(short Channel, short Type); IPCFUNC IpLutSave(LPSTR FileName, LPSTR Description); IPCFUNC IpLutSetAttr(short AttrType, short AttrValue); IPCFUNC IpLutSetControl(short ControlType, LPSHORT ipLutControls, short Count); IPCFUNC IpLutShow(short Show); /*----------------------------------------------------------------- | Measurements |------------------------------------------------------------------*/ IPCFUNC IpMeasAttr(short bAttr, short Value); IPCFUNC IpMeasDelete(short bMeasurement); IPCFUNC IpMeasLoadOutline(LPSTR OutlineFile); IPCFUNC IpMeasMove(short x, short y); IPCFUNC IpMeasRestore(void); IPCFUNC IpMeasSaveData(LPSTR DataFile, short saveMode); IPCFUNC IpMeasSaveOutline(LPSTR OutlineFile); IPCFUNC IpMeasShow(short bShow); IPCFUNC IpMeasSize(short cx, short cy); IPCFUNC IpMeasTool(short tool); IPCFUNC IpMeasTag(short Id, short OnOff); IPCFUNC IpMeasGet(short Command, short wParam, LPVOID lpParam); /*----------------------------------------------------------------- | Manual Tagging |------------------------------------------------------------------*/ IPCFUNC IpTagAttr(short bAttr, short Value); IPCFUNC IpTagDelete(short index); IPCFUNC IpTagLoadPoints(LPSTR PointsFile); IPCFUNC IpTagSaveData(LPSTR DataFile, short saveMode); IPCFUNC IpTagSavePoints(LPSTR PointsFile); IPCFUNC IpTagSaveEnv(LPSTR PointsFile); IPCFUNC IpTagLoadEnv(LPSTR PointsFile); IPCFUNC IpTagShow(short bShow); IPCFUNC IpTagUpdate(void); IPCFUNC IpTagGet(short Command, short wParam, LPVOID lpParam); IPCFUNC IpTagPt(short XPos, short YPos, short PointClass); /*----------------------------------------------------------------- | OPSDLG.DLL - Arithmetics and logical operations |------------------------------------------------------------------*/ IPCFUNC IpOpBkgndCorrect(short WsBackId, short BlackLevel, short bNewImage); IPCFUNC IpOpBkgndSubtract(short WsBackId, short bNewImage); IPCFUNC IpOpImageArithmetics(short WsId, float Number, short OpaCode, short bNewImage); IPCFUNC IpOpImageLogic(short WsId, short OplCode, short bNewImage); IPCFUNC IpOpNumberArithmetics(float Number, short OpaCode, short bNewImage); IPCFUNC IpOpNumberLogic(short Number, short OplCode, short bNewImage); IPCFUNC IpOpShow(short bShow); IPCFUNC IpOpNumberRgb(LPFLOAT Number, short OpaCode, short bNewImage); /*----------------------------------------------------------------- | Palette tool |------------------------------------------------------------------*/ IPCFUNC IpPalShow(short bShow); IPCFUNC IpPalSetPaletteColor(short PaletteIndex, short Red, short Green, short Blue); IPCFUNC IpPalSetGrayBrush(short bForeGround, short GrayIndex); IPCFUNC IpPalSetPaletteBrush(short bForeGround, short PaletteIndex); IPCFUNC IpPalSetRGBBrush(short bForeGround, short Red, short Green, short Blue); /*----------------------------------------------------------------- | Line profile |------------------------------------------------------------------*/ IPCFUNC IpProfCreate(void); IPCFUNC IpProfDestroy(void); IPCFUNC IpProfLineMove(short x1, short y1, short x2, short y2); IPCFUNC IpProfMaximize(void); IPCFUNC IpProfMinimize(void); IPCFUNC IpProfMove(short x, short y); IPCFUNC IpProfRestore(void); IPCFUNC IpProfSave(LPSTR FileName, short bAppend); IPCFUNC IpProfSelect(short ProfId); IPCFUNC IpProfSetAttr(short AttrType, short AttrValue); IPCFUNC IpProfSize(short cx, short cy); IPCFUNC IpProfUpdate(void); IPCFUNC IpProfGet(short Command, short wParam, LPVOID lpParam); /*----------------------------------------------------------------- | IPPRINT.DLL - Printing |------------------------------------------------------------------*/ IPCFUNC IpPrtHalftone(short bUsePrtHalftone, short bUsePrtScaling, short HalftoneType, short HaltoneOption); IPCFUNC IpPrtPage(short PageNo, short bUsePrtComp, short Copies); IPCFUNC IpPrtSize(short bActual, short bCentered, float Top, float Left, float Width, float Height, short bSmooth); IPCFUNC IpPrtScreen(short PageNo, short bUsePrtComp, short Copies); /*----------------------------------------------------------------- | Pseudo color |------------------------------------------------------------------*/ IPCFUNC IpPcDefineColorSpread(short ColorSpread, long ClrFrom, long ClrTo, short Method); IPCFUNC IpPcLoad(LPSTR PseudoColorFile); IPCFUNC IpPcSave(LPSTR PseudoColorFile); IPCFUNC IpPcSaveData(LPSTR FileName, short Flag); IPCFUNC IpPcSetColor(short DivNo, short Red, short Green, short Blue); IPCFUNC IpPcSetColorSpread(short ColorSpread); IPCFUNC IpPcSetDivisions(short Divisions); IPCFUNC IpPcSetRange(short DivNo, short FromVal, short ToVal); IPCFUNC IpPcShow(short bShow); /*----------------------------------------------------------------- | scan functions |------------------------------------------------------------------*/ IPCFUNC IpScanShow(void); IPCFUNC IpScanSelect(void); /*----------------------------------------------------------------- | color segmentation functions |------------------------------------------------------------------*/ IPCFUNC IpSegCreateMask(short MaskType, short MaskMethod, short MaskClass); IPCFUNC IpSegLoad(LPSTR ColorRangesFile); IPCFUNC IpSegMerge(LPSTR ColorRangesFile); IPCFUNC IpSegReset(void); IPCFUNC IpSegSave(LPSTR ColorRangesFile, short bHSI); IPCFUNC IpSegSelect(short SelectionType, short sensitivity); IPCFUNC IpSegShow(short bShow); IPCFUNC IpSegPreview(short bShow); IPCFUNC IpSegSetAttr(short AttrType, short AttrValue); IPCFUNC IpSegNew(LPSTR ClassName); IPCFUNC IpSegDelete(LPSTR ClassName, short Index); IPCFUNC IpSegRename(short Index, LPSTR ClassName); IPCFUNC IpSegSetRange(short nChannel, float FromVal, float ToVal); IPCFUNC IpSegSelectArea(short SelectionType, short sensitivity, short xpos, short ypos, short nSize); /*----------------------------------------------------------------- | Workspace functions |------------------------------------------------------------------*/ IPCFUNC IpWsChangeDescription(short DescriptionType, LPSTR Description); IPCFUNC IpWsChangeInfo(short InfoType, short Info); IPCFUNC IpWsConvertFile(LPSTR DstFile, LPSTR DstFormat, LPSTR SrcFile, LPSTR SrcFormat, short Compr, short imClass, short HalfType, short HalfOpt, short Dpi); IPCFUNC IpWsConvertToBilevel(short HalftoneType, short Screen, short OutputDpi); IPCFUNC IpWsConvertToFloat(void); IPCFUNC IpWsConvertToGray(void); IPCFUNC IpWsConvertToGray12(void); IPCFUNC IpWsConvertToGray16(void); IPCFUNC IpWsConvertToPaletteMColor(void); IPCFUNC IpWsConvertToPaletteMedian(short StartIndex, short NumColors); IPCFUNC IpWsConvertToRGB(void); IPCFUNC IpWsCopy(void); IPCFUNC IpWsCreate(short Width, short Height, short Dpi, short Class); IPCFUNC IpWsCreateFromClipboard(void); IPCFUNC IpWsDuplicate(void); IPCFUNC IpWsFill(short FillType, short ColorType, short Transparency); IPCFUNC IpWsFillPattern(LPSTR PatternFile); /* IPCFUNC IpWsGetId(LPSTR WsName, LPSHORT Id); */ /* IPCFUNC IpWsGetName(short Id, LPSTR WsName, short WsNameBufSize); */ IPCFUNC IpWsLoad(LPSTR FileName, LPSTR FileFormat); IPCFUNC IpWsLoadNumber(short Number); IPCFUNC IpWsLoadPreview(LPSTR FileName, LPSTR FileFormat, short Left, short Top, short Right, short Bottom); IPCFUNC IpWsMove(short x, short y); IPCFUNC IpWsOrient(short OrientType); IPCFUNC IpWsOverlay(LPSTR SrcImageName, short Transparency, short DoFloatingOverlay); IPCFUNC IpWsPan(short x, short y); IPCFUNC IpWsPaste(short x, short y); IPCFUNC IpWsRedo(short Number); IPCFUNC IpWsReload(void); IPCFUNC IpWsRotate(float Angle, short Anchor); IPCFUNC IpWsRulerShow(short bShow); IPCFUNC IpWsRulerType(short RulerType); IPCFUNC IpWsSave(void); IPCFUNC IpWsSaveAs(LPSTR FileName, LPSTR FileFormat); IPCFUNC IpWsSaveEx(LPSTR FileName, LPSTR FileFormat, short Compression, short BitsPerPlane); IPCFUNC IpWsScale(short Width, short Height, short bSmooth); IPCFUNC IpWsTestStrips(short HorzPage, short VertPage, short Type, short MinValue, short MaxValue, short Reduction, short bRed, short bGreen, short bBlue); IPCFUNC IpWsTestStrips2(short HorzPage, short VertPage, short Type1, short MinValue1, short MaxValue1, short Type2, short MinValue2, short MaxValue2, short Reduction, short bRed, short bGreen, short bBlue); IPCFUNC IpWsTestStripsHalftone(short AllTypes, short Color, LPSHORT ipHalfTypes, LPSHORT ipHalfScreens, short OutputDpi, short Reduction); IPCFUNC IpWsUndo(short Number); IPCFUNC IpWsZoom(short PercentZoom); IPCFUNC IpWsLoadSetRes(short Number); IPCFUNC IpWsCreateFromVri(short Vri, LPSTR Name, short Mode); IPCFUNC IpWsGray12To8(short start12, short end12, short start8, short end8); IPCFUNC IpWsGray16To8(short start16, short end16, short start8, short end8); IPCFUNC IpWsStretchLut(short Mode); /*----------------------------------------------------------------- | Template Mode functions |------------------------------------------------------------------*/ IPCFUNC IpTemplateMode(short OnOff); /* 1: ON; 0: OFF */ /*----------------------------------------------------------------- | Macro Management functions |------------------------------------------------------------------*/ IPCFUNC IpMacroRun(LPSTR macroName, LPSTR scriptFile); IPCFUNC IpMacroLoad(LPSTR scriptFile); IPCFUNC IpMacroStop(LPSTR message, short exclusif); IPCFUNC IpMacroWait(short delay); /*----------------------------------------------------------------- | Miscellaneous |------------------------------------------------------------------*/ IPCFUNC IpStAutoName(LPSTR Format, short Number, LPSTR Filename); IPCFUNC IpStSearchDir(LPSTR Directory, LPSTR Filter, short Number, LPSTR Filename); IPCFUNC IpStGetName(LPSTR Title, LPSTR Default, LPSTR Filter, LPSTR Filename); IPCFUNC IpStGetString(LPSTR prompt, LPSTR string, short maxlen); IPCFUNC IpStGetInt(LPSTR prompt, LPSHORT value, short initval, short min, short max); IPCFUNC IpListPts(LPPOINT Points, LPSTR string); IPCFUNC IpMorePts(LPSTR string); IPCFUNC IpStGetFloat(LPSTR prompt, LPFLOAT value, float initval, float min, float max, float inc); IPCFUNC IpTrackBar(short Cmd, short tValue, LPSTR caption); IPCFUNC IpIniFile(short Cmd, LPSTR ValName, LPVOID lpVal); /*----------------------------------------------------------------- | Registration |------------------------------------------------------------------*/ IPCFUNC IpRegShow(short bShow); IPCFUNC IpRegister(LPPOINT FromPoints, LPPOINT ToPoints, short NumPoints, short AffCode); /*----------------------------------------------------------------- | Macro Output functions |------------------------------------------------------------------*/ IPCFUNC IpOutput(LPSTR message); IPCFUNC IpOutputShow(short bShow); IPCFUNC IpOutputClear(void); IPCFUNC IpOutputSave(LPSTR filename, short mode); IPCFUNC IpOutputSet(short sCmd, short sParam, LPVOID lpParam); /*----------------------------------------------------------------- | Bitmap analysis functions |------------------------------------------------------------------*/ IPCFUNC IpBitShow(short bShow); IPCFUNC IpBitAttr(short bAttr, short Value); IPCFUNC IpBitSaveData(LPSTR DataFile, short saveMode); /*----------------------------------------------------------------- | New functions |------------------------------------------------------------------*/ IPCFUNC IpAcqMultiSnap(short startframe, short numframes, short dest); IPCFUNC IpAcqControl(short Cmd, short Param, LPVOID lpParam); IPCFUNC IpSortAttr(short Attr, short Value); IPCFUNC IpSortShow(short bShow); IPCFUNC IpSortObjects(void); IPCFUNC IpDde(short Cmd, LPSTR szStr1, LPSTR szStr2); /*----------------------------------------------------------------- | Draw functions |------------------------------------------------------------------*/ IPCFUNC IpAnotAttr(short attr, long value); IPCFUNC IpAnotLine(LPPOINT lpPoints, short numPoints, short lineEndType, short bFilled); IPCFUNC IpAnotBox(LPRECT lpBoxRect, short bFilled); IPCFUNC IpAnotEllipse(LPPOINT lpCenter, short radx, short rady, short bFilled); /*----------------------------------------------------------------- | Overlay (and plot) functions |------------------------------------------------------------------*/ IPCFUNC IpPlotCreate(LPSTR title); IPCFUNC IpPlotData(short plotid, short axis, short valueType, LPVOID values, short count); IPCFUNC IpPlotRange(short plotid, short axis, short valueType, short rangeType, LPVOID values); IPCFUNC IpPlotSet(short plotid, LPSTR commandString); IPCFUNC IpPlotShow(short plotid, short sMode); IPCFUNC IpPlotUpdate(short plotid); IPCFUNC IpPlotDestroy(short plotid); IPCFUNC IpDraw(LPPOINT Points, short numpoints, short Attrib); IPCFUNC IpDrawText(LPSTR text, LPPOINT pos, short Attrib); IPCFUNC IpDrawClear(short objid); IPCFUNC IpGetLine(LPSTR Message, LPPOINT LinePts, LPSHORT numpoints, short maxpoints, short Attrib); IPCFUNC IpDrawClearDoc(short docid); IPCFUNC IpDrawGet(short command, short objid, LPVOID lpParam); IPCFUNC IpDrawSet(short command, short objid, LPVOID lpParam); #define DDE_OPEN 1 #define DDE_CLOSE 2 #define DDE_PUT 3 #define DDE_GET 4 #define DDE_EXEC 5 #define DDE_SET 6 /* for IpBlbSetFilterRange */ #define CALIB_UNIT 0x4000 /* print functions */ #define P_GRAPH 1 #define P_TABLE 2 #define P_IMAGE 3 #define TXT_BOLD 1 #define TXT_UNDERLINE 2 #define TXT_ITALIC 3 #define TXT_STRIKEOUT 4 #define TXT_DROPSHADOW 5 #define TXT_ENCLOSED 6 #define TXT_SPACING 7 IPCFUNC IpTextShow(short bShow); IPCFUNC IpTextBurn(LPSTR textStr, LPPOINT textPos); IPCFUNC IpTextSetAttr(short Attr, short value); IPCFUNC IpTextFont(LPSTR fontName, short fontSize); /* IpAcqSettings() */ #define ACQ_LOAD 0 #define ACQ_SAVE 1 IPCFUNC IpAcqSettings(LPSTR lpszFile, short bSave); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _INC_IPCHEADER */