LEADTOOLS Medical (Leadtools.Medical3D assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
MemoryEfficientSetFrame(RasterImage,Int32,Point3D,Boolean) Method
See Also 
Leadtools.Medical3D Namespace > Medical3DObject Class > MemoryEfficientSetFrame Method : MemoryEfficientSetFrame(RasterImage,Int32,Point3D,Boolean) Method



image
Leadtools.RasterImageused to fill a portion of the object.
frameIndex
The index that represents the place of the image to set in the 3D object.
imagePosition
the position of the frame being set. Get this value from the DICOM file.
remove
true to dispose of the image after copying its data and placing it into the 3D object; false, otherwise.
image
Leadtools.RasterImageused to fill a portion of the object.
frameIndex
The index that represents the place of the image to set in the 3D object.
imagePosition
the position of the frame being set. Get this value from the DICOM file.
remove
true to dispose of the image after copying its data and placing it into the 3D object; false, otherwise.
Fills the 3D object with data from the specified Leadtools.RasterImage.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub MemoryEfficientSetFrame( _
   ByVal image As RasterImage, _
   ByVal frameIndex As Integer, _
   ByVal imagePosition As Point3D, _
   ByVal remove As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As Medical3DObject
Dim image As RasterImage
Dim frameIndex As Integer
Dim imagePosition As Point3D
Dim remove As Boolean
 
instance.MemoryEfficientSetFrame(image, frameIndex, imagePosition, remove)
C# 
public void MemoryEfficientSetFrame( 
   RasterImage image,
   int frameIndex,
   Point3D imagePosition,
   bool remove
)
C++/CLI 
public:
void MemoryEfficientSetFrame( 
   RasterImage^ image,
   int frameIndex,
   Point3D imagePosition,
   bool remove
) 

Parameters

image
Leadtools.RasterImageused to fill a portion of the object.
frameIndex
The index that represents the place of the image to set in the 3D object.
imagePosition
the position of the frame being set. Get this value from the DICOM file.
remove
true to dispose of the image after copying its data and placing it into the 3D object; false, otherwise.

Example

For an example, refer to Medical3DObject

Remarks

  • You must add the Medical3DObject to the Medical3DContainer before using this method. Refer to Medical3DContainer.Objects collection.
  • You must first initialize the memory efficient feature before using this method. To initialize the feature, 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 parameter used when calling MemoryEfficientInit.
  • You do not need to set frames in order. However, you need to fill the whole 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 want to sort the series frames based on their ImagePositionPatient Dicom tag.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Medical3D requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features