The following example displays an original image (left) and uses methods to scale and rotate the visualization (right).
Copy these lines and paste them into the IDL command line to run:
file = FILEPATH('galaxy.dat', $
galaxy = READ_BINARY(file, DATA_DIMS = [256, 256])
im = IMAGE(galaxy, RGB_TABLE = 4)
im.SCALE, 1.5, 1.5
You can also control the image display using the toolbar in the Graphics window.
Note: This example uses data files from the IDL examples/data directory of your IDL installation. Two files in that directory, data.txt and index.txt, contain descriptions of the files, including array sizes.