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#
C++/CLI
public void SetRequestedImageThumbnail( 
   RasterImage image, 
   int index, 
   int width, 
   int height 
) 
            public: 
void SetRequestedImageThumbnail(  
   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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.