Changeset 7523
- Timestamp:
- Jun 12, 2006, 10:42:38 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/mathtypes/psImage.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.h
r6874 r7523 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-0 4-17 22:00:03$13 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-06-12 20:42:38 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 80 80 psImage; 81 81 82 #define P_PSIMAGE_SET_NUMCOLS(img,nc) *(int*)&img->numCols = nc 83 #define P_PSIMAGE_SET_NUMROWS(img,nr) *(int*)&img->numCols = nr 84 #define P_PSIMAGE_SET_TYPE(img,t) *(psMathType*)&img->type = t 85 86 // XXX moved to psRegion.h in src/math 87 # if 0 88 /** Basic image region structure. 89 * 90 * Struct for specifying a rectangular area in an image. 91 * 92 */ 93 typedef struct 94 { 95 float x0; ///< the first column of the region. 96 float x1; ///< the last column of the region. 97 float y0; ///< the first row of the region. 98 float y1; ///< the last row of the region. 99 } 100 psRegion; 101 # endif 82 #define P_PSIMAGE_SET_NUMCOLS(img,nc) {*(int*)&img->numCols = nc;} 83 #define P_PSIMAGE_SET_NUMROWS(img,nr) {*(int*)&img->numRows = nr;} 84 #define P_PSIMAGE_SET_TYPE(img,t) {*(psMathType*)&img->type = t;} 102 85 103 86 /** Create an image of the specified size and type.
Note:
See TracChangeset
for help on using the changeset viewer.
