DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomDataSet Class / SetPixelFile Method

The name of the external file

The offset in the file of the start of the first frame

The offset in the file between the start of one frame, and the start of the next




In This Topic
    SetPixelFile Method
    In This Topic
    Maps an external file as the pixel data
    Syntax
    'Declaration
     
    
    Public Sub SetPixelFile( _
       ByVal FileName As String, _
       ByVal InitialOffset As Long, _
       ByVal FrameOffset As Long _
    ) 
    'Usage
     
    
    Dim instance As DicomDataSet
    Dim FileName As String
    Dim InitialOffset As Long
    Dim FrameOffset As Long
     
    instance.SetPixelFile(FileName, InitialOffset, FrameOffset)
    public void SetPixelFile( 
       string FileName,
       long InitialOffset,
       long FrameOffset
    )
    public:
    void SetPixelFile( 
       String^ FileName,
       int64 InitialOffset,
       int64 FrameOffset
    ) 

    Parameters

    FileName

    The name of the external file

    InitialOffset

    The offset in the file of the start of the first frame

    FrameOffset

    The offset in the file between the start of one frame, and the start of the next

    Remarks
    The PixelData attribute (7FE0, 0010) is set after calling this method and Pixel data is read from the specified external file only when image rendering is about to happen.
    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