ImageManipulations.c
gboolean create_textured_image(char * inImage, char * texImage, char * outImage, GPid * id, GError *error)
{
	/* Setup local vars. */
	char cmpCmd[10] = "composite";
	char tile[6] = "-tile";
	char compose[9] = "-compose";
	char hardlight[10] = "Hardlight";
	
	/* Setup the arguments for the commands. */	
	char * args[8];
	args[0] = cmpCmd;
	args[1] = texImage;
	args[2] = inImage;
	args[3] = tile;
	args[4] = compose;
	args[5] = hardlight;
	args[6] = outImage;
	args[7] = '\0';

    /* Spawn a new process, to be run asynchronously. */
	return g_spawn_async ( NULL, args, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH, NULL, NULL, id, &error);	
}
/******************************************************************************
 *
 *  Function:       create_textured_image
 *  Description:    This function will create a texturized version of the provided
 *					image.
 *  Inputs:         inImage - the image to paint, 
 *                  outImage - the oil painted image
 *                  texImage - the texture to apply to the image
 *                  id - the ID of the spawned process
 *                  error - place to store error information  
 *  Outputs:        TRUE on success, FALSE if error is set.
 *  Routines Called: g_spawn_async
 *
 *****************************************************************************/
create_textured_image
Description:    This function will create a texturized version of the provided
image.
create_textured_image Description : This function will create a texturized version of the provided image .
gboolean create_textured_image(char * inImage, char * texImage, char * outImage, GPid * id, GError *error)
{
	char cmpCmd[10] = "composite";
	char tile[6] = "-tile";
	char compose[9] = "-compose";
	char hardlight[10] = "Hardlight";
	char * args[8];
	args[0] = cmpCmd;
	args[1] = texImage;
	args[2] = inImage;
	args[3] = tile;
	args[4] = compose;
	args[5] = hardlight;
	args[6] = outImage;
	args[7] = '\0';
	return g_spawn_async ( NULL, args, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH, NULL, NULL, id, &error);	
}
gboolean create_textured_image ( char * inImage , char * texImage , char * outImage , GPid * id , GError * error ) { char cmpCmd [ 10 ] = " " ; char tile [ 6 ] = " " ; char compose [ 9 ] = " " ; char hardlight [ 10 ] = " " ; char * args [ 8 ] ; args [ 0 ] = cmpCmd ; args [ 1 ] = texImage ; args [ 2 ] = inImage ; args [ 3 ] = tile ; args [ 4 ] = compose ; args [ 5 ] = hardlight ; args [ 6 ] = outImage ; args [ 7 ] = ' \0 ' ; return g_spawn_async ( NULL , args , NULL , G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH , NULL , NULL , id , & error ) ; }
Function:       create_textured_image
  Description:    This function will create a texturized version of the provided
                                      image.
Function : create_textured_image Description : This function will create a texturized version of the provided image .
/* Setup local vars. */ /* Setup the arguments for the commands. */ /* Spawn a new process, to be run asynchronously. */