MemoryEfficientSetFrame(RasterImage,int,bool) Method

Summary

Fills the 3D object with data from the specified Leadtools.RasterImage.

Syntax
C#
VB
C++
public void MemoryEfficientSetFrame( 
   RasterImage image, 
   int frameIndex, 
   bool remove 
) 
  
Public Overloads Sub MemoryEfficientSetFrame( _ 
   ByVal image As RasterImage, _ 
   ByVal frameIndex As Integer, _ 
   ByVal remove As Boolean _ 
)  
public: 
void MemoryEfficientSetFrame(  
   RasterImage^ image, 
   int frameIndex, 
   bool remove 
)  

Parameters

image
Leadtools.RasterImage used to fill a portion of the object.

frameIndex
The index that represents the place of the image to set in the 3D object

remove
true to of dispose the image after copying its data and placing in the 3D object; false, otherwise.

Remarks
  • Add the Medical3DObject to the Medical3DContainer before using this method. Refer to theMedical3DContainer.Objects collection.
  • Initialize the efficient memory feature before using this method. To do so, use the MemoryEfficientInit method.
  • You need to call this method multiple times, each with different frameIndex, in order to fill the 3D object. The number of times is based on the depth depth
    The depth of the 3D object, or the number of frames used to create the 3D object.

    parameter used when calling MemoryEfficientInit.

  • You do not need to set frames in order. However, you need to fill the entire object by covering all the indexes from 0 to depth - 1. The area that was not filled will be black when rendering the object.

  • This overloaded method is used when you do not want to sort the series frames.

Example

For an example, refer to Medical3DObject.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical3D Assembly