Load or generate a Raster data set into a Map window
Find the Raster data set you want to export in the Layers list and select it.
Right click it and select Export Legend...
Enter the desired export resolution, or leave the values as default, and click Save or Copy. Clicking Copy will copy the image to the Clipboard and is available to paste into other programs (such as Microsoft Word).
After clicking Save, specify a file name to save the legend image to.