- 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.
- captureTime
- Creation time of the set frame. Get this value from the DICOM file.
- remove
- true to dispose of the image after copying its data and placing it in the 3D object; false, otherwise.
Visual Basic (Declaration) | |
---|---|
Overloads Public Sub MemoryEfficientSetFrame( _ ByVal image As RasterImage, _ ByVal frameIndex As Integer, _ ByVal captureTime As Date, _ ByVal remove As Boolean _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Medical3DObject Dim image As RasterImage Dim frameIndex As Integer Dim captureTime As Date Dim remove As Boolean instance.MemoryEfficientSetFrame(image, frameIndex, captureTime, remove) |
C# | |
---|---|
public void MemoryEfficientSetFrame( RasterImage image, int frameIndex, DateTime captureTime, bool remove ) |
C++/CLI | |
---|---|
public: void MemoryEfficientSetFrame( RasterImage^ image, int frameIndex, DateTime captureTime, 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.
- captureTime
- Creation time of the set frame. Get this value from the DICOM file.
- remove
- true to dispose of the image after copying its data and placing it in the 3D object; false, otherwise.
For an example, refer to Medical3DObject
- Add the Medical3DObject to the Medical3DContainer before using this method. Refer to the Medical3DContainer.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 a 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 InstanceCreationTime DICOM tag.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7