Index: /trunk/psLib/src/imageops/psImageStructManip.c
===================================================================
--- /trunk/psLib/src/imageops/psImageStructManip.c	(revision 12997)
+++ /trunk/psLib/src/imageops/psImageStructManip.c	(revision 12998)
@@ -8,6 +8,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-04-12 18:54:51 $
+ *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-04-24 22:27:17 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -143,4 +143,14 @@
     return imageSubset(NULL,image,region.x0, region.y0,
                        region.x1, region.y1);
+}
+
+psImage* psImageCopyView(psImage *output, psImage *input) 
+{
+    psRegion region = {0, 0, 0, 0};
+    region = psRegionForImage (input, region);
+    psImage *result = imageSubset (output, input, 
+				   region.x0, region.y0,
+				   region.x1, region.y1);
+    return result;
 }
 
Index: /trunk/psLib/src/imageops/psImageStructManip.h
===================================================================
--- /trunk/psLib/src/imageops/psImageStructManip.h	(revision 12997)
+++ /trunk/psLib/src/imageops/psImageStructManip.h	(revision 12998)
@@ -5,6 +5,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2007-03-14 00:39:50 $
+*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2007-04-24 22:27:17 $
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
 */
@@ -18,4 +18,5 @@
 #include "psImage.h"
 #include "psRegion.h"
+#include "psRegionForImage.h"
 
 /** Create a subimage of the specified area.
@@ -38,4 +39,10 @@
     psRegion region                    ///< region of subimage
 );
+
+/** Makes a copy of the image view on the parent:
+ *  if this is a child, returns a child pointing at the same pixels
+ *  if this is a parent, returns a child pointing at the full array
+ */
+psImage* psImageCopyView(psImage *output, psImage *input);
 
 /** Makes a copy of a psImage
