LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

DeleteImage(DicomElement,Int32,Int32) Method








An item in the Data Set.
The zero-based index of the first frame to delete.
Value that represents the number of frames to delete from the Pixel Data Element.
Deletes one or more images from a Pixel Data element. .NET support Silverlight support
Syntax
public void DeleteImage( 
   DicomElement element,
   int index,
   int count
)
'Declaration
 
Public Overloads Sub DeleteImage( _
   ByVal element As DicomElement, _
   ByVal index As Integer, _
   ByVal count As Integer _
) 
'Usage
 
Dim instance As DicomDataSet
Dim element As DicomElement
Dim index As Integer
Dim count As Integer
 
instance.DeleteImage(element, index, count)
public void DeleteImage( 
   DicomElement element,
   int index,
   int count
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomDataSet.DeleteImage(DicomElement,Int32,Int32)( 
   element ,
   index ,
   count 
)
public:
void DeleteImage( 
   DicomElement^ element,
   int index,
   int count
) 

Parameters

element
An item in the Data Set.
index
The zero-based index of the first frame to delete.
count
Value that represents the number of frames to delete from the Pixel Data Element.
Remarks
As an example, if you wish to delete 50 images starting with the 50th frame in the Pixel Data, call this method with index set to 49 (the 50th frame in a zero-based index) and count set to 50.

Most DICOM files will only have one Data Element of type DicomTag.PixelData. Therefore, in most instances you can set element to null, since the method will automatically retrieve information about the image at the specified index within the only Pixel Data Element in the file. If element is not null, it must point to the Pixel Data Element itself.

If the DICOM file is DicomClassType.BasicDirectory, the file may contain more than one Pixel Data Element. In this case you must specify in element the Pixel Data Element from to delete the image(s).

If the DICOM dataset has a Multi-frame Functional Groups module that contains an item that has a Per-frame Functional Groups Sequenceitem, the corresponding item is removed from the dataset. If there is a Shared Functional Groups Sequence item, it will not be removed.

For a detailed discussion on Multi-frame Functional Groups see the topic Multi-frame Functional Groups.
Example
For an example, refer to GetImage(DicomElement,Int32,Int32,RasterByteOrder,DicomGetImageFlags).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomDataSet Class
DicomDataSet Members
Overload List
GetImageCount Method
GetImage(DicomElement,Int32,Int32,RasterByteOrder,DicomGetImageFlags) Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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