The DISSOLVE procedure provides a digital “dissolve” effect for images. The routine copies pixels from the image (arranged into square tiles) to the display in pseudo-random order. This routine is written in the IDL language. Its source code can be found in the file dissolve.pro in the lib subdirectory of the IDL distribution.
Examples
Read in and display an image using a 10 x 10 pixel size:
fir = FILEPATH('africavlc.png', SUBDIR=['examples', 'data'])
READ_PNG, fir, firi
DISSOLVE, firi, DELAY=0.001, SIZ=10
Syntax
DISSOLVE, Image [, DELAY=seconds] [, /ORDER] [, SIZ=pixels] [, X0=pixels] [, Y0=pixels]
Arguments
Image
The image to be displayed. It is assumed that the image is already scaled. Byte-valued images display most rapidly.
Keywords
DELAY
The wait between displaying tiles. The default is 0.01 second.
ORDER
The Image display order: 0 = bottom up (the default), 1 = top-down.
SIZ
Size of square tile. The default is 32 x 32 pixels.
X0
The X offset of the lower-left corner of the image on screen, in pixels.
Y0
The Y offset of the lower-left corner of the image on screen, in pixels.
Version History
See Also