Changeset 4212 for trunk/psLib/src/collections/psPixels.c
- Timestamp:
- Jun 10, 2005, 11:46:46 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psPixels.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psPixels.c
r4203 r4212 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 09 23:51:49$9 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-10 21:46:46 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 132 132 133 133 // determine the output image size 134 int numRows = x1-x0;135 int numCols = y1-y0;134 int numRows = y1-y0; 135 int numCols = x1-x0; 136 136 if (numRows < 1 || numCols < 1) { 137 137 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 138 138 PS_ERRORTEXT_psPixels_REGION_INVALID, 139 x0,x1,y0,y1);139 y0,y1,x0,x1); 140 140 psFree(out); 141 141 return NULL; … … 150 150 return NULL; 151 151 } 152 *(psS32*)&out->row0 = x0;153 *(psS32*)&out->col0 = y0;152 *(psS32*)&out->row0 = y0; 153 *(psS32*)&out->col0 = x0; 154 154 155 155 // initialize image to all zeros … … 169 169 // pixel in region? 170 170 if (x >= x0 && x < x1 && y >= y0 && y < y1) { 171 outData[ x-x0][y-y0] |= maskVal;171 outData[y-y0][x-x0] |= maskVal; 172 172 } 173 173 }
Note:
See TracChangeset
for help on using the changeset viewer.
