lext_add_lex_draw_object_c (ul_lextools)

	status.i4.v = lext_add_lex_draw_object_c(image_buffer.i1a.r,
						 object_type.i4.v,
						 object_data.g.v)

	This routine adds an object to a Lex Draw image buffer.  This
	buffer can be saved by a call to lext_save_image_c.

	image_buffer	Lex Draw image buffer (LEXT_IMAGE_SIZE bytes)
	object_type	type of object to insert
			(LEXT_LD_SCREENSIZE -> image size object,
			 LEXT_LD_LINE -> line object,
			 LEXT_LD_BOX -> box object,
			 LEXT_LD_CIRCLE -> circle object,
			 LEXT_LD_TEXT -> text string object)
	object_data	object definition data
			(LEXT_LD_SCREENSIZE -> structure of type
					       LEXT_LD_SCREENSIZE_DATA,
			 LEXT_LD_LINE -> structure of type
					LEXT_LD_LINE_DATA,
			 LEXT_LD_BOX -> structure of type
					LEXT_LD_BOX_DATA,
			 LEXT_LD_CIRCLE -> structure of type
					   LEXT_LD_CIRCLE_DATA,
			 LEXT_LD_TEXT -> structure of type
					 LEXT_LD_TEXT_DATA)

	This function returns ACNET status values as follows:

	CLIB_OK			success
	CLIB_INVARG		invalid object type or data
	CLIB_INVSIZ		image buffer is too large to be saved

	This function requires the following include files:

	ul_lextools_h:lextuti_h, acnet_errors_h

	Related functions:

	lximag, lext_read_image_c, lext_save_image_c

	C usage:

	char	command_buffer[LEXT_IMAGE_SIZE];
	int	status;
	int	object_type = LEXT_LD_LINE;
	LEXT_LD_LINE_DATA	line_data;

	line_data.x1_pos = 100;
	line_data.y1_pos = 100;
	line_data.x2_pos = 200;
	line_data.y2_pos = 200;
	line_data.vector_width = 1;
	line_data.color = GREEN;

	status = lext_add_lex_draw_object_c(command_buffer,object_type,
					   (void *) &line_data);