I believe that ENVI's idea of "generic format ASCII images" is a grid of pixel values that are stored as whitespace- or comma-delimited number strings. For example, an ASCII representation of a 400 x 300 image would be a file with 300 lines of 400 "columns" of number strings.
If I am right on this, then simple IDL code for reading such a file and displaying it as an IDL Direct Graphics image could be as simple as this:
IDL> file = 'ascii_image.txt'
IDL> image_data_struct = read_ascii(file)
IDL> help, image_data,_struct /STRUCT
;** Structure , 1 tags, length=36, data length=36, refs=1:
; FIELD1 FLOAT Array[400, 300]
IDL> image_data = image_data_struct.field1
IDL> window, XSIZE=400, YSIZE=300
IDL> tvscl, image_data
James Jones
|