←Select platform

SetRequestedImageThumbnail(RasterImage,int,int,int) Method

Summary

Sends the requested images to the control. This method is used when the low memory usage feature is enabled (for more information see EnableLowMemoryUsage(int32,int32,medicalviewerimageinformation[]))

Syntax

C#
VB
C++
public void SetRequestedImageThumbnail( 
   RasterImage image, 
   int index, 
   int width, 
   int height 
) 
  
Public Overloads Sub SetRequestedImageThumbnail( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal index As Integer, _ 
   ByVal width As Integer, _ 
   ByVal height As Integer _ 
)  
             
            public: 
void SetRequestedImageThumbnail(  
   Leadtools.RasterImage^ image, 
   int index, 
   int width, 
   int height 
)  
             

Parameters

image
The thumbnail to be set.

index
The index of the thumbnail in the image.

width
The width of the original image.

height
The height of the original image.

Remarks
  • The low memory usage feature works by keeping the control from loading all the frames on runtime. Instead, the control will load only the frames that are currently visible on the cell. The control will send a request each time the user scrolls down or up, changes the number of visible frames, etc. For example, suppose the cell layout is a 2X2 (see Rows and Columns, and the user needs to load more than 100,000 frames, the control will not load them all. Instead, this method will send a FramesRequested event when the cell is loaded, requesting 4 frames (1, 2, 3 and 4) (because the cell is 2X2). Once the user scrolls down the cell to view frame number 5, frame number 1 will be disposed of because it is no longer visible, and the event will be fired to request frame number 5. When frames are requested, the user is supposed to send them to the control using the SetRequestedImage method.
  • If the low memory usage feature is not needed, load images directly by assigning the image to the cell using the Image property.
Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly