Changeset 12998
- Timestamp:
- Apr 24, 2007, 12:27:17 PM (19 years ago)
- Location:
- trunk/psLib/src/imageops
- Files:
-
- 2 edited
-
psImageStructManip.c (modified) (2 diffs)
-
psImageStructManip.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStructManip.c
r12814 r12998 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2007-04- 12 18:54:51$10 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2007-04-24 22:27:17 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 143 143 return imageSubset(NULL,image,region.x0, region.y0, 144 144 region.x1, region.y1); 145 } 146 147 psImage* psImageCopyView(psImage *output, psImage *input) 148 { 149 psRegion region = {0, 0, 0, 0}; 150 region = psRegionForImage (input, region); 151 psImage *result = imageSubset (output, input, 152 region.x0, region.y0, 153 region.x1, region.y1); 154 return result; 145 155 } 146 156 -
trunk/psLib/src/imageops/psImageStructManip.h
r12431 r12998 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 3-14 00:39:50$7 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-04-24 22:27:17 $ 9 9 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 10 10 */ … … 18 18 #include "psImage.h" 19 19 #include "psRegion.h" 20 #include "psRegionForImage.h" 20 21 21 22 /** Create a subimage of the specified area. … … 38 39 psRegion region ///< region of subimage 39 40 ); 41 42 /** Makes a copy of the image view on the parent: 43 * if this is a child, returns a child pointing at the same pixels 44 * if this is a parent, returns a child pointing at the full array 45 */ 46 psImage* psImageCopyView(psImage *output, psImage *input); 40 47 41 48 /** Makes a copy of a psImage
Note:
See TracChangeset
for help on using the changeset viewer.
