This property sets how images are loaded and displayed in the Thumbnail Control.
thumbcontrolname.SetReadMode(long Val)
* ImageKit9ThumbALib refers to the ANSI version, ImageKit9ThumbLib refers to the Unicode version.
Property Value
Value | Explanation |
---|---|
0 | Load |
1 | Load and display |
2 | Load (for multi-page image files) |
3 | Load and display (for multi-page image files) |
4 | Load image handles |
The following constants can also be used: (ikThumbRd = 0, ikThumbRdDsp = 1, ikThumbRdMultiImg = 2, ikThumbRdDspMultiImg = 3, ikThumbRdImage = 4).
Explanation
The ReadMode property sets how images are loaded and displayed in the Thumbnail Control. When the ReadMode property is set to 0(ikThumbRd) or 2(ikThumbRdMultiImg), the GetFiles method loads the appropriate file from the folder set in the FilePath property into the memory. The Display method displays the file on the control.
When the ReadMode property is set to 1(ikThumbRdDsp) or 3(ikThumbRdDspMultiImg), by executing the Display method, the appropriate files from folders set in the FilePath property are displayed on the control while they are being loaded.
* Multi-image is only for GIF and TIFF.
When the ReadMode property is set to 4(ikThumbRdImage), by executing the Display method, the image set in the ImageHandle property is displayed on the control. In order to display multiple images at once, please set the ClearOnLoad property to False and set each memory handle to the ImageHandle property.
Setting this value
This value can be set at design-time and run-time.Retrieving this value
This value can be retrieved at run-time.