![]() If Data is three-dimensional, then if any one of the dimensions is 3, it is assumed to represent the red, green, and blue channels. ArgumentsĪ filename, vector, two-dimensional array, or a three-dimensional array containing RGB or RGBA pixel values. Use the returned reference to manipulate the graphic after creation by changing properties or calling methods. The IMAGE function returns a reference to the created graphic. Properties can be set as keywords to the function during creation, or retrieved or changed using the "." notation after creation.ĪSPECT_RATIO, AXES, BACKGROUND_COLOR, BACKGROUND_TRANSPARENCY, CLIP, CROSSHAIR, FONT_COLOR, FONT_NAME, FONT_SIZE, FONT_STYLE, GRID_UNITS, HIDE, INTERPOLATE, MAPGRID, MAPPROJECTION, MAP_PROJECTION, MAX_VALUE, MIN_VALUE, NAME, POSITION, RGB_TABLE, SCALE_CENTER, SCALE_FACTOR, TITLE, TRANSPARENCY, UVALUE, WINDOW, WINDOW_TITLE, XRANGE, YRANGE, ZVALUE Methods GEOTIFF= structure, IMAGE_DIMENSIONS= array, IMAGE_LOCATION= array, / IRREGULAR, / ORDER Properties BUFFER, / CURRENT, / DEVICE, DIMENSIONS=, LAYOUT= array, LOCATION=, MARGIN= scalar or, / NO_TOOLBAR, / NODATA, / OVERPLOT, / WIDGETS ![]() Keywords are applied only during the initial creation of the graphic. See Image examples, or Image with a Map Projection, or Viewing an Image. for i=- 100, 100 do im2.TRANSPARENCY= abs(i) Additional Examples file2 = FILEPATH( 'Day.jpg', $ SUBDIRECTORY=) im2 = IMAGE(file2, /OVERPLOT, $ IMAGE_DIMENSIONS=, $ IMAGE_LOCATION=, $ TRANSPARENCY= 50) t = TEXT(- 175, 80, '$\it Day/Night$', $ /DATA, FONT_SIZE= 20) Fade between the two. im1 = IMAGE(file1, $ BACKGROUND_COLOR= "midnight blue", $ IMAGE_DIMENSIONS=, $ IMAGE_LOCATION=, $ XRANGE=, YRANGE=, $ DIMENSIONS=, MARGIN= 0) Overplot another image, same dimensions. file1 = FILEPATH( 'Night.jpg', $ SUBDIRECTORY=) The image spans, , with a lower-left pixel at. The following lines create the image shown at the top of this topic. ![]() See File Formats for a list of supported image types. The IMAGE function displays image data in a graphics window. ![]()
0 Comments
Leave a Reply. |