Index: trunk/psLib/test/image/tst_psImageExtraction.c
===================================================================
--- trunk/psLib/test/image/tst_psImageExtraction.c	(revision 2022)
+++ trunk/psLib/test/image/tst_psImageExtraction.c	(revision 2067)
@@ -6,6 +6,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-10-08 19:44:32 $
+*  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-10-13 00:10:50 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -21,4 +21,6 @@
 static int testImageSubset(void);
 static int testImageSubsection(void);
+static int testImageTrim(void);
+
 
 testDescription tests[] = {
@@ -27,4 +29,5 @@
                               {testImageSubsection,730,"psImageSubsection",0,false},
                               {testImageSlice, 552, "psImageSlice", 0, false},
+                              {testImageTrim, 744, "psImageTrim", 0, false},
                               {NULL}
                           };
@@ -743,2 +746,24 @@
     return 0;
 }
+
+static int testImageTrim(void)
+{
+    int r = 200;
+    int c = 300;
+    int quarterR = r/4;
+    int quarterC = c/4;
+    int halfR = r/2;
+    psImage* image = psImageAlloc(c,r,PS_TYPE_F32);
+    for (int row = 0; row < image->numRows; row++) {
+        for (int col = 0; col < image->numCols; col++) {
+            image->data.F32[row][col] = ((psF32)row+1.0f)/((psF32)col+1.0f);
+        }
+    }
+
+    psImage* image1 = psImageCopy(NULL,image,PS_TYPE_F32);
+    psImage* image2 = psImageTrim(image1,c/4,r/4,c*3/4,r*3/4);
+
+
+
+    return 0;
+}
